def is_type(self, instance, type):
try:<EOL><INDENT>fn = self._type_checkers[type]<EOL><DEDENT>except KeyError:<EOL><INDENT>raise UndefinedTypeCheck(type)<EOL><DEDENT>return fn(self, instance)<EOL>
Check if the instance is of the appropriate type.

Arguments:

    instance (object):

        The instance to check

    type (str):

        The name of the type that is expected.

Returns:

    bool: Whether it conformed.


Raises:

    `jsonschema.exceptions.UndefinedTypeCheck`:
        if type is unknown to this object.