code: def test_render_query(  # noqa: D
      request: FixtureRequest,
      mf_test_session_state: MetricFlowTestSessionState,
      it_helpers: IntegrationTestHelpers,
  ) -> None:
      result = it_helpers.mf_engine.explain(
          MetricFlowQueryRequest.create_with_random_request_id(
              metric_names=["bookings"],
              group_by_names=["metric_time"],
          )
      )
  
      assert_snapshot_text_equal(
          request=request,
          mf_test_session_state=mf_test_session_state,
          group_id=result.__class__.__name__,
          snapshot_id="query0",
          snapshot_text=result.rendered_sql.sql_query,
          snapshot_file_extension=".sql",
          incomparable_strings_replacement_function=make_schema_replacement_function(
              system_schema=it_helpers.mf_system_schema,
              source_schema=it_helpers.source_schema,
          ),
          exclude_line_regex=_EXCLUDE_TABLE_ALIAS_REGEX,
          additional_sub_directories_for_snapshots=(
              it_helpers.sql_client.sql_engine_type.value,
          ),
      )
  
file_path: metricflow/metricflow/test/integration/test_rendered_query.py
imports: from __future__ import annotations
  import pytest
  from _pytest.fixtures import FixtureRequest
  from metricflow.dataflow.sql_table import SqlTable
  from metricflow.engine.metricflow_engine import MetricFlowQueryRequest
  from metricflow.test.fixtures.setup_fixtures import MetricFlowTestSessionState
  from metricflow.test.integration.conftest import IntegrationTestHelpers
  from metricflow.test.snapshot_utils import assert_snapshot_text_equal, make_schema_replacement_function
label_desc: Use image node_id 1 for calling a global function with example usage: test_render_query(request, mf_test_session_state, it_helpers) without return types