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