code: def test_metric_time_dimension_transform_node_using_primary_time(  # noqa: D
      request: FixtureRequest,
      mf_test_session_state: MetricFlowTestSessionState,
      dataflow_to_sql_converter: DataflowToSqlQueryPlanConverter,
      consistent_id_object_repository: ConsistentIdObjectRepository,
      sql_client: SqlClient,
  ) -> None:
      """Tests converting a PlotTimeDimensionTransform node using the primary time dimension to SQL."""
      source_node = (
          consistent_id_object_repository.simple_model_read_nodes[
              "bookings_source"
          ]
      )
      metric_time_dimension_transform_node = MetricTimeDimensionTransformNode(
          parent_node=source_node,
          aggregation_time_dimension_reference=TimeDimensionReference(
              element_name="ds"
          ),
      )
      convert_and_check(
          request=request,
          mf_test_session_state=mf_test_session_state,
          dataflow_to_sql_converter=dataflow_to_sql_converter,
          sql_client=sql_client,
          node=metric_time_dimension_transform_node,
      )
  
file_path: metricflow/metricflow/test/plan_conversion/dataflow_to_sql/test_metric_time_dimension_to_sql.py
imports: from __future__ import annotations
  import pytest
  from _pytest.fixtures import FixtureRequest
  from dbt_semantic_interfaces.references import TimeDimensionReference
  from metricflow.dataflow.builder.dataflow_plan_builder import DataflowPlanBuilder
  from metricflow.dataflow.dataflow_plan import MetricTimeDimensionTransformNode
  from metricflow.plan_conversion.dataflow_to_sql import DataflowToSqlQueryPlanConverter
  from metricflow.protocols.sql_client import SqlClient
  from metricflow.specs.specs import MetricFlowQuerySpec, MetricSpec
  from metricflow.test.fixtures.model_fixtures import ConsistentIdObjectRepository
  from metricflow.test.fixtures.setup_fixtures import MetricFlowTestSessionState
  from metricflow.test.plan_conversion.test_dataflow_to_sql_plan import convert_and_check
  from metricflow.test.time.metric_time_dimension import MTD_SPEC_DAY
label_desc: Use image node_id 1 for calling a global function with example usage: test_metric_time_dimension_transform_node_using_primary_time(request, mf_test_session_state, dataflow_to_sql_converter, consistent_id_object_repository, sql_client) without return types