code: def test_metric_copy(relay_server, wandb_init):
      with relay_server() as relay:
          run = wandb_init()
          run_id = run.id
          run.define_metric("*", summary="copy")
          run.log(dict(mystep=1, val=2))
          run.log(dict(mystep=2, val=8))
          run.log(dict(mystep=3, val=3))
          run.log(dict(val2=4))
          run.log(dict(val2=1))
          run.finish()
  
      summary = relay.context.get_run_summary(run_id)
  
      assert summary["val"] == 3
      assert summary["val2"] == 1
      assert summary["mystep"] == 3
      assert len(summary) == 3
  
imports: import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_metric_copy(relay_server, wandb_init) without return types