code: def make_metrics(metrics_names):
      avg_epoch_loss_metric = {
          "Name": "training_loss",
          "Regex": r"'epoch_loss'=(\S+)",
      }
      final_loss_metric = {
          "Name": "final_loss",
          "Regex": r"Final loss: (\S+)",
      }
      other_metrics = [
          {
              "Name": metric,
              "Regex": rf"gluonts\[metric-{re.escape(metric)}\]: (\S+)",
          }
          for metric in metrics_names
      ]
  
      return [avg_epoch_loss_metric, final_loss_metric] + other_metrics
  
label_desc: Use image node_id 1 for calling a global function with example usage: make_metrics(metrics_names) and returns: unknown