human
Here's a good function header given the following:
I wrote the below code

    def inner(x):
        if (type(x) != _type):
            raise ValueError(("Value    must    have    type    '%s'" % str(_type)))
    return inner

What's a good function header?
assistant
#Here's a good function header.

def is_type_factory(_type):