'Returns whether or not the flag is enabled.
Arguments:
course_key (CourseKey): The course to check for override before
checking waffle.'

def is_enabled(self, course_key=None):

    assert issubclass(type(course_key), CourseKey), "The    course_key    '{}'    must    be    a    CourseKey.".format(str(course_key))
    return self.waffle_namespace.is_flag_active(self.flag_name, check_before_waffle_callback=self._get_course_override_callback(course_key), flag_undefined_default=self.flag_undefined_default)
