human
Complete the below
def deprecated(instructions):

    ''''Flags a method as deprecated.
    :param instructions: human-readable note to assist migration.'
    '''

Give me a the Python code you requested?
assistant
#Here is the Python code you requested.
    @decorator
    def wrapper(func, *args, **kwargs):
        message = u'{0}    is    deprecated    and    may    break    unexpectedly.\n{1}'.format(func.__name__, instructions)
        warnings.warn(message, GmusicapiWarning, stacklevel=2)
        return func(*args, **kwargs)
    return wrapper