def METHOD_NAME(mock_run, parse_records, record_q):
    run = mock_run()
    metirc = run.define_metric(
        "metric",
    )
    assert metirc.name == "metric"
    parsed = parse_records(record_q)
    assert len(parsed.records) == 1
    assert len(parsed.metric) == 1