code: def ensure_enabled(self) -> None:
      if not self.is_enabled():
          raise NotFound()
  
file_path: superset/superset/views/log/views.py
imports: from flask import current_app
  from flask_appbuilder.hooks import before_request
  from flask_appbuilder.models.sqla.interface import SQLAInterface
  from werkzeug.exceptions import NotFound
  import superset.models.core
  from superset.constants import MODEL_VIEW_RW_METHOD_PERMISSION_MAP, RouteMethod
  from superset.views.base import SupersetModelView
  from .None import LogMixin
label_desc: Use image node_id 2 for calling the LogModelView obj's underlying member method code with example usage: obj.ensure_enabled() without return types