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

    def preprocessor(func, argname, arg):
        if isinstance(arg, from_):
            return to(arg, **to_kwargs)
        return arg
    return preprocessor

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

def coerce(from_, to, **to_kwargs):