human
Complete the below
def deprecate(func, old, new):

    ''''Warn users invoking old to switch to the new function.'
    '''

=====
Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.
    def f(*args, **kwargs):
        warn_deprecate_obj(old, new)
        return func(*args, **kwargs)
    return f