human
Complete this python program:
def deprecated(function, instead):
assistant
#Here is the Python code you requested.

    """Mark a function deprecated so calling it issues a warning
    """
    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