code: def query_object_factory(
      app_config: dict[str, Any],
      connector_registry: Mock,
      session_factory: Mock,
  ) -> QueryObjectFactory:
      import superset.common.query_object_factory as mod
  
      mod.apply_max_row_limit = apply_max_row_limit
      return QueryObjectFactory(
          app_config, connector_registry, session_factory
      )
  
file_path: superset/tests/unit_tests/common/test_query_object_factory.py
imports: from typing import Any, Optional
  from unittest.mock import Mock, patch
  from pytest import fixture, mark
  from superset.common.query_object_factory import QueryObjectFactory
  from tests.common.query_context_generator import QueryContextGenerator
label_desc: Use image node_id 6 for calling a global function with example usage: query_object_factory(app_config, connector_registry, session_factory) and returns: QueryObjectFactory