def is_instance(the_type):
    """Returns if `the_value` is an instance of `the_type`.

    >>> is_instance(str)("hello")
    True

    >>> is_instance(int)("a")
    False
    """

    def is_instance(the_value):
        return isinstance(the_value, the_type)

    return is_instance