code: def test_metric_mult(relay_server, user, publish_util, mock_run):
      history = _gen_history()
      m1 = pb.MetricRecord(name="mystep")
      m2 = pb.MetricRecord(name="v1", step_metric="mystep")
      m2.summary.max = True
      m3 = pb.MetricRecord(name="v2", step_metric="mystep")
      m3.summary.min = True
      metrics = _make_metrics([m1, m2, m3])
      run = mock_run(use_magic_mock=True)
      with relay_server() as relay:
          publish_util(run=run, history=history, metrics=metrics)
  
      summary = relay.context.get_run_summary(
          run.id, include_private=True
      )
  
      assert summary["v1"] == {"max": 3}
      assert summary["v2"] == {"min": 2}
      assert summary["v3"] == "pizza"
      assert summary["mystep"] == 3
      assert summary["_step"] == 2
  
imports: from wandb.proto import wandb_internal_pb2
label_desc: Use image node_id 9 for calling a global function with example usage: test_metric_mult(relay_server, user, publish_util, mock_run) without return types