def METHOD_NAME(capsys):
    x, y, model = get_data_and_model()
    epoch_bar_format = "{n_fmt}/{total_fmt}{bar} ETA: dodo {remaining}s - {desc}"
    pb = tfa.callbacks.TQDMProgressBar(
        epoch_bar_format=epoch_bar_format, 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 "ETA: dodo" in fit_stderr