code: def get_metric(metric_name: str) -> "LudwigMetric":  # noqa
      return get_metric_registry()[metric_name]
  
file_path: ludwig/ludwig/modules/metric_registry.py
imports: from typing import Dict, List, Literal, TYPE_CHECKING, Union
  from ludwig.api_annotations import DeveloperAPI
  from ludwig.constants import LOGITS, MAXIMIZE, MINIMIZE, PREDICTIONS, PROBABILITIES, RESPONSE
  from ludwig.utils.registry import Registry
label_desc: Use image node_id 6 for calling a global function with example usage: get_metric(metric_name) and returns: get_metric_registry