def assertType(var, *allowedTypes):
if not isinstance(var, *allowedTypes):<EOL><INDENT>raise NotImplementedError("<STR_LIT>""<STR_LIT>".format(str(*allowedTypes), type(var)))<EOL><DEDENT>
Asserts that a variable @var is of an @expectedType. Raises a TypeError
if the assertion fails.