code: def get_metric_by_name(name: str) -> Callable[..., Any]:
      """Returns a metric callable with a corresponding name."""
      name = _REGISTRY.get(name, name)
      return fn_from_str(name)
  
file_path: DeepPavlov/deeppavlov/core/common/metrics_registry.py
imports: import importlib
  import json
  from logging import getLogger
  from pathlib import Path
  from typing import Callable, Any
  from deeppavlov.core.common.errors import ConfigError
label_desc: Use image node_id 3 for calling a global function with example usage: get_metric_by_name(name) and returns: fn_from_str