code: def get_query_context(
      query_name: str,
      add_postprocessing_operations: bool = False,
      add_time_offsets: bool = False,
      form_data: Optional[dict[str, Any]] = None,
  ) -> dict[str, Any]:
      """
      Create a request payload for retrieving a QueryContext object via the
      `api/v1/chart/data` endpoint. By default returns a payload corresponding to one
      generated by the "Boy Name Cloud" chart in the examples.
      :param query_name: name of an example query, which is always in the format
             of `datasource_name[:test_case_name]`, where `:test_case_name` is optional.
      :param add_postprocessing_operations: Add post-processing operations to QueryObject
      :param add_time_offsets: Add time offsets to QueryObject(advanced analytics)
      :param form_data: chart metadata
      :return: Request payload
      """
      return QueryContextGeneratorInteg().generate(
          query_name=query_name,
          add_postprocessing_operations=add_postprocessing_operations,
          add_time_offsets=add_time_offsets,
          form_data=form_data,
      )
  
imports: from typing import Any, Optional
  from tests.common.query_context_generator import QueryContextGenerator
  from tests.integration_tests.base_tests import SupersetTestCase
label_desc: Use image node_id 1 for calling a global function with example usage: get_query_context(query_name, add_postprocessing_operations, add_time_offsets, form_data) and returns: QueryContextGeneratorInteg