def METHOD_NAME(kwargs, mock_run, parse_records, record_q):
    run = mock_run()
    _ = run.define_metric(
        "metric",
        summary="best,max",
        step_metric="thestep",
    )
    _ = run.define_metric(
        "metric",
        summary="min",
        **kwargs,
    )
    parsed = parse_records(record_q)
    assert len(parsed.records) == 2
    assert len(parsed.metric) == 2
    # merging or overwriting happens in handler (internal)