code: def test_metric_time_property_for_cumulative_metric(  # noqa: D
      request: FixtureRequest,
      mf_test_session_state: MetricFlowTestSessionState,
      simple_model_spec_resolver: ValidLinkableSpecResolver,
  ) -> None:
      assert_linkable_element_set_snapshot_equal(
          request=request,
          mf_test_session_state=mf_test_session_state,
          set_id="result0",
          linkable_element_set=simple_model_spec_resolver.get_linkable_elements_for_metrics(
              metric_references=[
                  MetricReference(
                      element_name="trailing_2_months_revenue"
                  )
              ],
              with_any_of=frozenset(
                  {LinkableElementProperties.METRIC_TIME}
              ),
              without_any_of=frozenset(),
          ),
      )
  
file_path: metricflow/metricflow/test/model/semantics/test_linkable_spec_resolver.py
imports: from __future__ import annotations
  import logging
  import pytest
  from _pytest.fixtures import FixtureRequest
  from dbt_semantic_interfaces.references import MetricReference
  from metricflow.model.semantic_manifest_lookup import SemanticManifestLookup
  from metricflow.model.semantics.linkable_element_properties import LinkableElementProperties
  from metricflow.model.semantics.linkable_spec_resolver import ValidLinkableSpecResolver
  from metricflow.model.semantics.semantic_model_join_evaluator import MAX_JOIN_HOPS
  from metricflow.test.fixtures.setup_fixtures import MetricFlowTestSessionState
  from metricflow.test.snapshot_utils import assert_linkable_element_set_snapshot_equal
label_desc: Use image node_id 5 for calling a global function with example usage: test_metric_time_property_for_cumulative_metric(request, mf_test_session_state, simple_model_spec_resolver) without return types