code: def _process_query_object(
      self,
      datasource: BaseDatasource,
      form_data: dict[str, Any] | None,
      query_object: QueryObject,
  ) -> QueryObject:
      self._apply_granularity(query_object, form_data, datasource)
      self._apply_filters(query_object)
      return query_object
  
file_path: superset/superset/common/query_context_factory.py
imports: from __future__ import annotations
  from typing import Any, TYPE_CHECKING
  from superset import app, db
  from superset.common.chart_data import ChartDataResultFormat, ChartDataResultType
  from superset.common.query_context import QueryContext
  from superset.common.query_object import QueryObject
  from superset.common.query_object_factory import QueryObjectFactory
  from superset.daos.chart import ChartDAO
  from superset.daos.datasource import DatasourceDAO
  from superset.models.slice import Slice
  from superset.utils.core import DatasourceDict, DatasourceType, is_adhoc_column
label_desc: Use image node_id 5 for calling the QueryContextFactory obj's underlying member method code with example usage: obj._process_query_object(datasource, form_data, query_object) and returns: query_object