code: def get_metric(metric):
      if isinstance(metric, str):
          return _get_metric(metric)
      if isinstance(metric, tuple) and isinstance(metric[1], str):
          name, metric = metric
          metric = _get_metric(metric)
          if isinstance(metric, tuple):
              metric = metric[1]
          return name, metric
      return metric
  
file_path: poutyne/poutyne/framework/metrics/metrics_registering.py
imports: from poutyne.framework.metrics.utils import camel_to_snake
label_desc: Use image node_id 7 for calling a global function with example usage: get_metric(metric) and returns: metric, _get_metric, name,  metric