code: def _make_metrics(mitems):
      metrics = []
      for mitem in mitems:
          m = pb.MetricRecord()
          m.CopyFrom(mitem)
          metrics.append(m)
      return metrics
  
imports: from wandb.proto import wandb_internal_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: _make_metrics(mitems) and returns: metrics