class_docstr: MetricFlow Python client for running basic queries and other standard commands.
docstr: Retrieves a list of metric names.
  
  Returns:
      A dictionary with metric names as the key and the corresponding Metric object as the value.
docstr_tok: ["Retrieves","a","list","of","metric","names",".","Returns",":","A","dictionary","with","metric","names","as","the","key","and","the","corresponding","Metric","object","as","the","value","."]
code: def list_metrics(self) -> Dict[str, Metric]:
      """Retrieves a list of metric names.
  
      Returns:
          A dictionary with metric names as the key and the corresponding Metric object as the value.
      """
      return {m.name: m for m in self.engine.list_metrics()}
  
imports: from __future__ import annotations
  import datetime
  import logging
  from typing import Dict, List, Optional
  from dateutil.parser import parse
  from dbt_semantic_interfaces.protocols.semantic_manifest import SemanticManifest
  from dbt_semantic_interfaces.validations.semantic_manifest_validator import SemanticManifestValidator
  from dbt_semantic_interfaces.validations.validator_helpers import SemanticManifestValidationResults
  from metricflow.engine.metricflow_engine import MetricFlowEngine, MetricFlowExplainResult, MetricFlowQueryRequest, MetricFlowQueryResult
  from metricflow.engine.models import Dimension, Metric
  from metricflow.model.semantic_manifest_lookup import SemanticManifestLookup
  from metricflow.protocols.sql_client import SqlClient
  from metricflow.sql.optimizer.optimization_levels import SqlQueryOptimizationLevel
label_desc: Use image node_id 5 for calling the MetricFlowClient obj's underlying member method code with example usage: obj.list_metrics() and returns: unknown