code: def run_metrics(config, y_preds, y_ground_truth, mode):
      """Run metrics for one output"""
      metcs = metrics.get_metrics(
          config=config, y_pred=y_preds, y_true=y_ground_truth
      )
      logging.info("Evaluation on %s:" % mode)
      if isinstance(metcs, list):
          for one_metcs in metcs:
              for key in sorted(one_metcs.keys()):
                  logging.info(key + ":" + str(one_metcs[key]))
      else:
          for key in sorted(metcs.keys()):
              logging.info(key + ":" + str(metcs[key]))
  
file_path: delta/delta/utils/solver/utils/solver_utils.py
imports: import os
  import re
  from pathlib import Path
  import numpy
  import delta.compat
  from absl import logging
  import shutil
  from delta import utils
  from delta.utils import metrics
label_desc: Use image node_id 8 for calling a global function with example usage: run_metrics(config, y_preds, y_ground_truth, mode) without return types