def METHOD_NAME(args, kwargs, mock_run, parse_records, record_q):
    run = mock_run()
    with pytest.raises(wandb.Error):
        run.define_metric(args, **kwargs)
    parsed = parse_records(record_q)
    assert len(parsed.records) == 0