human
Complete the below
def ignore_deprecations(wrapped=None):

    ''''A context manager or a decorator.'
    '''
assistant
#Here is the Python code you requested.
    if wrapped:
        @functools.wraps(wrapped)
        def wrapper(*args, **kwargs):
            with _ignore_deprecations():
                return wrapped(*args, **kwargs)
        return wrapper
    else:
        return _ignore_deprecations()