code: def test_metric_twice_over(
      relay_server, user, publish_util, mock_run
  ):
      m1a = pb.MetricRecord(name="metric")
      m1a.summary.best = True
      m1a.summary.max = True
      m1a.step_metric = "thestep"
      m1b = pb.MetricRecord(name="metric")
      m1b.summary.min = True
      m1b._control.overwrite = True
  
      metrics = _make_metrics([m1a, m1b])
      run = mock_run(use_magic_mock=True)
      with relay_server() as relay:
          publish_util(run=run, metrics=metrics)
  
      metrics = relay.context.get_run_metrics(run.id)
      assert len(metrics) == 2
      assert metrics[0] == {"1": "thestep"}
      assert metrics[1] == {"1": "metric", "7": [1]}
  
imports: from wandb.proto import wandb_internal_pb2
label_desc: Use image node_id 14 for calling a global function with example usage: test_metric_twice_over(relay_server, user, publish_util, mock_run) without return types