code: def test_not_enabled(self):
      with patch.object(LogRestApi, "is_enabled", return_value=False):
          admin_user = self.get_user("admin")
          self.insert_log("some_action", admin_user)
          self.login(username="admin")
          arguments = {
              "filters": [
                  {"col": "action", "opr": "sw", "value": "some_"}
              ]
          }
          uri = f"api/v1/log/?q={prison.dumps(arguments)}"
          rv = self.client.get(uri)
          self.assertEqual(rv.status_code, 404)
  
imports: from datetime import datetime, timedelta
  import json
  from typing import Optional
  from unittest.mock import ANY
  from flask_appbuilder.security.sqla.models import User
  import prison
  from unittest.mock import patch
  from superset import db
  from superset.models.core import Log
  from superset.views.log.api import LogRestApi
  from tests.integration_tests.conftest import with_feature_flags
  from tests.integration_tests.dashboard_utils import create_dashboard
  from tests.integration_tests.test_app import app
  from .base_tests import SupersetTestCase
label_desc: Use image node_id 2 for calling the TestLogApi obj's underlying member method code with example usage: obj.test_not_enabled() without return types