code: def test_get_elements(
      semantic_model_lookup: SemanticModelLookup,
  ) -> None:  # noqa: D
      for (
          dimension_reference
      ) in semantic_model_lookup.get_dimension_references():
          assert (
              semantic_model_lookup.get_dimension(
                  dimension_reference=dimension_reference
              ).reference
              == dimension_reference
          )
      for measure_reference in semantic_model_lookup.measure_references:
          measure_reference = MeasureReference(
              element_name=measure_reference.element_name
          )
          assert (
              semantic_model_lookup.get_measure(
                  measure_reference=measure_reference
              ).reference
              == measure_reference
          )
  
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 4 for calling a global function with example usage: test_get_elements(semantic_model_lookup) without return types