code: def test_metric_dotted(relay_server, wandb_init):
      """Escape dots in metric definitions."""
      with relay_server() as relay:
          run = wandb_init()
          run_id = run.id
          run.define_metric("this\\.that", summary="min")
          run.log({"this.that": 3})
          run.log({"this.that": 2})
          run.log({"this.that": 4})
          run.finish()
  
      summary = relay.context.get_run_summary(run_id)
      metrics = relay.context.get_run_metrics(run_id)
  
      assert summary["this.that"] == {"min": 2}
      assert len(metrics) == 1
      assert metrics[0] == {"1": "this\\.that", "7": [1], "6": [3]}
  
imports: import pytest
label_desc: Use image node_id 23 for calling a global function with example usage: test_metric_dotted(relay_server, wandb_init) without return types