code: def test_list_metrics(mf_client: MetricFlowClient) -> None:  # noqa: D
      metrics = mf_client.list_metrics()
      assert metrics
  
      metric_name, metric_obj = next(iter(metrics.items()))
  
      assert metric_name == metric_obj.name
      assert isinstance(metric_obj, Metric)
  
      assert metric_obj.dimensions
      assert isinstance(metric_obj.dimensions[0], Dimension)
  
file_path: metricflow/metricflow/test/api/test_metricflow_client.py
imports: from __future__ import annotations
  from dbt_semantic_interfaces.validations.validator_helpers import SemanticManifestValidationResults
  from metricflow.api.metricflow_client import MetricFlowClient
  from metricflow.dataflow.sql_table import SqlTable
  from metricflow.engine.models import Dimension, Metric
  from metricflow.random_id import random_id
  from metricflow.test.fixtures.setup_fixtures import MetricFlowTestSessionState
label_desc: Use image node_id 3 for calling a global function with example usage: test_list_metrics(mf_client) without return types