human
Here's a good function header given the following:
I wrote the below code

    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

What's a good function header?
assistant
#Here's a good function header.

def gating_enabled(default=None):