human
Complete this python program:
def if_notifications_enabled(f):
assistant
#Here is the Python program you requested.

    """Calls decorated method only if notifications are enabled.
    """
    @functools.wraps(f)
    def wrapped(*args, **kwargs):
        if notifications_enabled(CONF):
            return f(*args, **kwargs)
        return DO_NOTHING
    return wrapped