code: def test_metric_glob_twice_over(
      relay_server, user, publish_util, mock_run
  ):
      history = []
      history.append(
          dict(
              step=0,
              data=dict(
                  metric=1,
              ),
          )
      )
  
      m1a = pb.MetricRecord(glob_name="*")
      m1a.summary.best = True
      m1a.summary.max = True
      m1a.step_metric = "thestep"
      m1b = pb.MetricRecord(glob_name="*")
      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, history=history)
  
      metrics = relay.context.get_run_metrics(run.id)
      summary = relay.context.get_run_summary(
          run.id, include_private=True
      )
  
      assert metrics and len(metrics) == 1
      assert metrics[0] == {"1": "metric", "7": [1]}
  
      assert summary["metric"] == {"min": 1}
      assert summary["_step"] == 0
  
imports: from wandb.proto import wandb_internal_pb2
label_desc: Use image node_id 15 for calling a global function with example usage: test_metric_glob_twice_over(relay_server, user, publish_util, mock_run) without return types