code: def test_get_semantic_models_for_measure(
      semantic_model_lookup: SemanticModelLookup,
  ) -> None:  # noqa: D
      bookings_sources = (
          semantic_model_lookup.get_semantic_models_for_measure(
              MeasureReference(element_name="bookings")
          )
      )
      assert len(bookings_sources) == 1
      assert bookings_sources[0].name == "bookings_source"
  
      views_sources = (
          semantic_model_lookup.get_semantic_models_for_measure(
              MeasureReference(element_name="views")
          )
      )
      assert len(views_sources) == 1
      assert views_sources[0].name == "views_source"
  
      listings_sources = (
          semantic_model_lookup.get_semantic_models_for_measure(
              MeasureReference(element_name="listings")
          )
      )
      assert len(listings_sources) == 1
      assert listings_sources[0].name == "listings_latest"
  
imports: from __future__ import annotations
  import logging
  import pytest
  from _pytest.fixtures import FixtureRequest
  from dbt_semantic_interfaces.protocols.semantic_manifest import SemanticManifest
  from dbt_semantic_interfaces.references import EntityReference, MeasureReference, MetricReference
  from metricflow.model.semantics.linkable_element_properties import LinkableElementProperties
  from metricflow.model.semantics.metric_lookup import MetricLookup
  from metricflow.model.semantics.semantic_model_lookup import SemanticModelLookup
  from metricflow.test.fixtures.setup_fixtures import MetricFlowTestSessionState
  from metricflow.test.snapshot_utils import assert_linkable_element_set_snapshot_equal, assert_object_snapshot_equal
label_desc: Use image node_id 5 for calling a global function with example usage: test_get_semantic_models_for_measure(semantic_model_lookup) without return types