human
Complete the below
def if_notifications_enabled(f):

    ''''Calls decorated method only if notifications are enabled.'
    '''
 ... Give me a the Python program you requested?
assistant
#Here is the Python program you requested.
    @functools.wraps(f)
    def wrapped(*args, **kwargs):
        if notifications_enabled(CONF):
            return f(*args, **kwargs)
        return DO_NOTHING
    return wrapped