human
Complete this python program:
def ignore_deprecations(wrapped=None):
assistant
#Here is the Python program you requested.

    """A context manager or a decorator.
    """
    if wrapped:
        @functools.wraps(wrapped)
        def wrapper(*args, **kwargs):
            with _ignore_deprecations():
                return wrapped(*args, **kwargs)
        return wrapper
    else:
        return _ignore_deprecations()