code: def metric_lookup(  # Noqa: D
      simple_semantic_manifest: SemanticManifest,
      semantic_model_lookup: SemanticModelLookup,
  ) -> MetricLookup:
      return MetricLookup(
          semantic_manifest=simple_semantic_manifest,
          semantic_model_lookup=semantic_model_lookup,
      )
  
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 2 for calling a global function with example usage: metric_lookup(simple_semantic_manifest, semantic_model_lookup) and returns: MetricLookup