def METHOD_NAME(self, flag):
    """
    Returns True if a CourseWaffleFlag, WaffleSwitch, or Django settings ``FEATURE``
    is enabled for this block, False otherwise.
    """
    if hasattr(self, 'location') and self._course_waffle_flag(flag).is_enabled(self.location.course_key):
        return True
    if self._waffle_switch(flag).is_enabled():
        return True
    if self._waffle_flag(flag).is_enabled():
        return True
    if self._settings_toggle_enabled(FEATURE_TOGGLES_BY_FLAG_NAME.get(flag)):
        return True
    return False