human
Complete the below
def is_type_factory(_type):

    ''''Parameters
    `_type` - a type to be compared against (e.g. type(x) == `_type`)
    Returns
    validator - a function of a single argument x , which raises
    ValueError if type(x) is not equal to `_type`'
    '''

Write me a the Python code you requested?
assistant
#Here is the Python code you requested.
    def inner(x):
        if (type(x) != _type):
            raise ValueError(("Value    must    have    type    '%s'" % str(_type)))
    return inner