human
I wrote the below code

    if (not isinstance(function, types.FunctionType)):
        return function
    @wraps(function)
    def wrap(*args, **kwargs):
        warnings.warn(('Deprecated,    use    %s    instead' % instead), PyGIDeprecationWarning)
        return function(*args, **kwargs)
    return wrap

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

def deprecated(function, instead):