human
I wrote the below code

    def check(value):
        if hasattr(value, 'dtype'):
            return (value.dtype.kind == numpy_kind)
        return isinstance(value, python_types)
    return check

What's a good function header?

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

def make_kind_check(python_types, numpy_kind):