human
Give me a the Python program you requested given the following:
Complete the below
def gating_enabled(default=None):

    ''''Decorator that checks the enable_subsection_gating course flag to
    see if the subsection gating feature is active for a given course.
    If not, calls to the decorated function return the specified default value.
    Arguments:
    default (ANY): The value to return if the enable_subsection_gating course flag is False
    Returns:
    ANY: The specified default value if the gating feature is off,
    otherwise the result of the decorated function'
    '''
assistant
#Here is the Python program you requested.
    def wrap(f):
        def function_wrapper(course, *args):
            if (not course.enable_subsection_gating):
                return default
            return f(course, *args)
        return function_wrapper
    return wrap