code: def test_get_names(  # noqa: D
      request: FixtureRequest,
      mf_test_session_state: MetricFlowTestSessionState,
      semantic_model_lookup: SemanticModelLookup,
  ) -> None:
      assert_object_snapshot_equal(
          request=request,
          mf_test_session_state=mf_test_session_state,
          obj_id="result0",
          obj={
              "dimension_references": sorted(
                  [
                      d.element_name
                      for d in semantic_model_lookup.get_dimension_references()
                  ]
              ),
              "measure_references": sorted(
                  [
                      m.element_name
                      for m in semantic_model_lookup.measure_references
                  ]
              ),
              "entity_references": sorted(
                  [
                      i.element_name
                      for i in semantic_model_lookup.get_entity_references()
                  ]
              ),
          },
      )
  
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 3 for calling a global function with example usage: test_get_names(request, mf_test_session_state, semantic_model_lookup) without return types