code: def test_metric_ignored_extra_args(
      mock_run, parse_records, record_q, capsys
  ):
      run = mock_run()
      run.define_metric(
          "junk",
          extra=1,
          another=2,
      )
      captured = capsys.readouterr()
      print("GOT out", captured.out)
      print("GOT err", captured.err)
      assert "Unhandled define_metric() arg: extra" in captured.err
      assert "Unhandled define_metric() arg: another" in captured.err
  
      parsed = parse_records(record_q)
      assert len(parsed.records) == 1
      assert len(parsed.metric) == 1
  
file_path: wandb/tests/pytest_tests/unit_tests/test_wandb_define_metric.py
imports: import pytest
  import wandb
  from wandb.proto import wandb_internal_pb2
label_desc: Use image node_id 10 for calling a global function with example usage: test_metric_ignored_extra_args(mock_run, parse_records, record_q, capsys) without return types