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

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