def is_consistent_type(theType, name, *constructionArgs):
 assert (theType.__name__ == name)
 assert isinstance(theType, type)
 instance = theType(*constructionArgs)
 assert (type(instance) is theType)
 return True

def is_consistent_type ( theType , name , * constructionArgs ) : assert ( theType . __name__ == name ) assert isinstance ( theType , type ) instance = theType ( * constructionArgs ) assert ( type ( instance ) is theType ) return True
perform various assertions about *thetype* to ensure that it is a well-defined type .