def METHOD_NAME(capsys):
    x, y, model = get_data_and_model()
    pb = tfa.callbacks.TQDMProgressBar(
        metrics_format="{name}: dodo {value:0.6f}", show_overall_progress=False
    )
    capsys.readouterr()  # flush the buffer
    model.fit(x, y, epochs=1, verbose=0, callbacks=[pb])
    fit_stderr = capsys.readouterr().err
    assert "acc: dodo" in fit_stderr
    assert re.search(r"acc: dodo [0-9]\.[0-9][0-9][0-9][0-9][0-9][0-9]", fit_stderr)