code: def test_metric_glob_twice_norm(
      relay_server, user, publish_util, mock_run
  ):
      run = mock_run(use_magic_mock=True)
      with relay_server() as relay:
          _history = [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
  
          _metrics = _make_metrics([m1a, m1b])
          publish_util(run=run, history=_history, metrics=_metrics)
  
      summary = relay.context.get_run_summary(run.id)
      history = relay.context.get_run_history(
          run.id, include_private=True
      )
      metrics = relay.context.get_run_metrics(run.id)
  
      assert metrics and len(metrics) == 2
      assert metrics[0] == {"1": "thestep"}
      assert metrics[1] == {"1": "metric", "5": 1, "7": [1, 2, 4]}
      assert summary == {"metric": {"max": 1, "best": 1, "min": 1}}
      assert history["metric"][0] == 1
      assert history["_step"][0] == 0
  
imports: from wandb.proto import wandb_internal_pb2
label_desc: Use image node_id 21 for calling a global function with example usage: test_metric_glob_twice_norm(relay_server, user, publish_util, mock_run) without return types