def METHOD_NAME(capsys):
    x, y, model = get_data_and_model()
    capsys.readouterr()  # flush the buffer
    model.fit(x, y, epochs=1, verbose=0, callbacks=[tfa.callbacks.TQDMProgressBar()])
    fit_stderr = capsys.readouterr().err
    assert "loss:" in fit_stderr
    assert "acc:" in fit_stderr