code: def test_saved_query_with_cumulative_metric(  # noqa: D
      request: FixtureRequest,
      capsys: pytest.CaptureFixture,
      mf_test_session_state: MetricFlowTestSessionState,
      cli_runner: MetricFlowCliRunner,
      sql_client: SqlClient,
  ) -> None:
      resp = cli_runner.run(
          query,
          args=[
              "--saved-query",
              "saved_query_with_cumulative_metric",
              "--order",
              "metric_time__day",
              "--start-time",
              "2020-01-01",
              "--end-time",
              "2020-01-01",
          ],
      )
  
      assert_object_snapshot_equal(
          request=request,
          mf_test_session_state=mf_test_session_state,
          obj_id="cli_output",
          obj=resp.output,
          sql_client=sql_client,
      )
  
      assert resp.exit_code == 0
  
imports: from __future__ import annotations
  import logging
  import shutil
  import textwrap
  from contextlib import contextmanager
  from pathlib import Path
  from typing import Iterator
  import pytest
  from _pytest.fixtures import FixtureRequest
  from dbt_semantic_interfaces.parsing.dir_to_model import parse_yaml_files_to_validation_ready_semantic_manifest
  from dbt_semantic_interfaces.parsing.objects import YamlConfigFile
  from dbt_semantic_interfaces.test_utils import base_semantic_manifest_file
  from metricflow.cli.cli_context import CLIContext
  from metricflow.cli.main import dimension_values, dimensions, entities, health_checks, metrics, query, tutorial, validate_configs
  from metricflow.protocols.sql_client import SqlClient, SqlEngine
  from metricflow.test.fixtures.cli_fixtures import MetricFlowCliRunner
  from metricflow.test.fixtures.setup_fixtures import MetricFlowTestSessionState
  from metricflow.test.model.example_project_configuration import EXAMPLE_PROJECT_CONFIGURATION_YAML_CONFIG_FILE
  from metricflow.test.snapshot_utils import assert_object_snapshot_equal
label_desc: Use image node_id 14 for calling a global function with example usage: test_saved_query_with_cumulative_metric(request, capsys, mf_test_session_state, cli_runner, sql_client) without return types