human
Complete the below
def if_search_enabled(f):

    ''''Only call `f` if search is enabled for the CourseTeamIndexer.'
    '''
assistant
#Here is the Python program you requested.
    @wraps(f)
    def wrapper(*args, **kwargs):
        'Wraps    the    decorated    function.'
        cls = args[0]
        if cls.search_is_enabled():
            return f(*args, **kwargs)
    return wrapper