<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_type(type_, *p):
 """ True if all args have the same type """

    try:
        for i in p:
            if i.type_ != type_:
                return False

        return True
    except:
        pass

    return False