code: def get_metric_value_or_empty(
      metrics_log: Dict[str, List[TrainerMetric]], metric_name: str
  ):
      """Returns the metric value if it exists or empty."""
      if metric_name not in metrics_log:
          return ""
      return metrics_log[metric_name][-1][-1]
  
file_path: ludwig/ludwig/utils/metrics_printed_table.py
imports: import logging
  from typing import Dict, List
  from tabulate import tabulate
  from ludwig.constants import COMBINED, LOSS
  from ludwig.utils.metric_utils import TrainerMetric
label_desc: Use image node_id 1 for calling a global function with example usage: get_metric_value_or_empty(metrics_log, metric_name) and returns: metrics_log, str