def check_type(self, zenpy_objects):
expected_type = self.api._object_mapping.class_for_type(self.api.object_type)<EOL>if not isinstance(zenpy_objects, collections.Iterable):<EOL><INDENT>zenpy_objects = [zenpy_objects]<EOL><DEDENT>for zenpy_object in zenpy_objects:<EOL><INDENT>if type(zenpy_object) is not expected_type:<EOL><INDENT>raise ZenpyException(<EOL>"<STR_LIT>".format(expected_type, type(zenpy_object))<EOL>)<EOL><DEDENT><DEDENT>
Ensure the passed type matches this API's object_type.