human
Complete this python program:
def deprecate(func, old, new):
assistant
#Here is the Python program you requested.

    """Warn users invoking old to switch to the new function.
    """
    def f(*args, **kwargs):
        warn_deprecate_obj(old, new)
        return func(*args, **kwargs)
    return f