code: def test_filter_resolution_for_derived_metrics_with_common_filtered_metric(
      request: FixtureRequest,
      mf_test_session_state: MetricFlowTestSessionState,
      ambiguous_resolution_manifest: PydanticSemanticManifest,
  ) -> None:
      """Checks that there are 2 filter spec resolutions even if the metric + filter combination is repeated.
  
      The resolutions will have a different filter_location_path.
      """
      check_resolution_with_filter(
          request=request,
          mf_test_session_state=mf_test_session_state,
          semantic_manifest=ambiguous_resolution_manifest,
          transform_rules=(),
          queried_metrics=(
              MetricReference(
                  element_name="derived_metric_with_common_filtered_metric_0"
              ),
              MetricReference(
                  element_name="derived_metric_with_common_filtered_metric_1"
              ),
          ),
      )
  
imports: from __future__ import annotations
  import logging
  from typing import Dict, Optional, Sequence
  import pytest
  from _pytest.fixtures import FixtureRequest
  from dbt_semantic_interfaces.implementations.filters.where_filter import PydanticWhereFilter, PydanticWhereFilterIntersection
  from dbt_semantic_interfaces.implementations.semantic_manifest import PydanticSemanticManifest
  from dbt_semantic_interfaces.naming.keywords import METRIC_TIME_ELEMENT_NAME
  from dbt_semantic_interfaces.references import MetricReference
  from dbt_semantic_interfaces.transformations.transform_rule import SemanticManifestTransformRule
  from metricflow.mf_logging.pretty_print import mf_pformat
  from metricflow.model.semantic_manifest_lookup import SemanticManifestLookup
  from metricflow.naming.naming_scheme import QueryItemNamingScheme
  from metricflow.query.group_by_item.filter_spec_resolution.filter_pattern_factory import DefaultWhereFilterPatternFactory
  from metricflow.query.group_by_item.filter_spec_resolution.filter_spec_lookup import FilterSpecResolutionLookUp
  from metricflow.query.group_by_item.filter_spec_resolution.filter_spec_resolver import WhereFilterSpecResolver
  from metricflow.query.group_by_item.resolution_dag.dag import GroupByItemResolutionDag
  from metricflow.test.fixtures.setup_fixtures import MetricFlowTestSessionState
  from metricflow.test.model.modify.modify_input_metric_filter import ModifyInputMetricFilterTransform
  from metricflow.test.model.modify.modify_manifest import modify_manifest
  from metricflow.test.model.modify.modify_metric_filter import ModifyMetricFilterTransform
  from metricflow.test.query.group_by_item.conftest import AmbiguousResolutionQueryId, _build_resolution_dag
  from metricflow.test.snapshot_utils import assert_object_snapshot_equal
label_desc: Use image node_id 8 for calling a global function with example usage: test_filter_resolution_for_derived_metrics_with_common_filtered_metric(request, mf_test_session_state, ambiguous_resolution_manifest) without return types