code: def test_common_semantic_model(  # noqa: D
      request: FixtureRequest,
      mf_test_session_state: MetricFlowTestSessionState,
      dataflow_plan_builder: DataflowPlanBuilder,
  ) -> None:
      """Tests a simple plan getting a metric and a local dimension."""
      dataflow_plan = dataflow_plan_builder.build_plan(
          MetricFlowQuerySpec(
              metric_specs=(
                  MetricSpec(element_name="bookings"),
                  MetricSpec(element_name="booking_value"),
              ),
              dimension_specs=(
                  DataSet.metric_time_dimension_spec(
                      TimeGranularity.DAY
                  ),
                  DimensionSpec(
                      element_name="country_latest",
                      entity_links=(EntityReference("listing"),),
                  ),
              ),
          )
      )
  
      assert_plan_snapshot_text_equal(
          request=request,
          mf_test_session_state=mf_test_session_state,
          plan=dataflow_plan,
          plan_snapshot_text=dataflow_plan_as_text(dataflow_plan),
      )
  
      display_graph_if_requested(
          request=request,
          mf_test_session_state=mf_test_session_state,
          dag_graph=dataflow_plan,
      )
  
imports: from __future__ import annotations
  import logging
  import pytest
  from _pytest.fixtures import FixtureRequest
  from dbt_semantic_interfaces.naming.keywords import METRIC_TIME_ELEMENT_NAME
  from dbt_semantic_interfaces.type_enums.time_granularity import TimeGranularity
  from metricflow.dataflow.builder.dataflow_plan_builder import DataflowPlanBuilder
  from metricflow.dataflow.dataflow_plan_to_text import dataflow_plan_as_text
  from metricflow.dataset.dataset import DataSet
  from metricflow.errors.errors import UnableToSatisfyQueryError
  from metricflow.query.query_parser import MetricFlowQueryParser
  from metricflow.specs.column_assoc import ColumnAssociationResolver
  from metricflow.specs.specs import DimensionSpec, EntityReference, MetricFlowQuerySpec, MetricSpec, OrderBySpec, TimeDimensionSpec
  from metricflow.test.dataflow_plan_to_svg import display_graph_if_requested
  from metricflow.test.fixtures.setup_fixtures import MetricFlowTestSessionState
  from metricflow.test.snapshot_utils import assert_plan_snapshot_text_equal
  from metricflow.test.time.metric_time_dimension import MTD_SPEC_DAY, MTD_SPEC_MONTH, MTD_SPEC_QUARTER
label_desc: Use image node_id 21 for calling a global function with example usage: test_common_semantic_model(request, mf_test_session_state, dataflow_plan_builder) without return types