code: def ensure_alert_reports_enabled(self) -> Optional[Response]:
      if not is_feature_enabled("ALERT_REPORTS"):
          return self.response_404()
      return None
  
file_path: superset/superset/reports/logs/api.py
imports: import logging
  from typing import Any, Optional
  from flask import Response
  from flask_appbuilder.api import expose, permission_name, protect, rison, safe
  from flask_appbuilder.api.schemas import get_item_schema, get_list_schema
  from flask_appbuilder.hooks import before_request
  from flask_appbuilder.models.sqla.interface import SQLAInterface
  from superset import is_feature_enabled
  from superset.constants import MODEL_API_RW_METHOD_PERMISSION_MAP, RouteMethod
  from superset.reports.logs.schemas import openapi_spec_methods_override
  from superset.reports.models import ReportExecutionLog
  from superset.views.base_api import BaseSupersetModelRestApi
label_desc: Use image node_id 1 for calling the ReportExecutionLogRestApi obj's underlying member method code with example usage: obj.ensure_alert_reports_enabled() and returns: None, self