def test_tqdm_progress_bar_value_on_colab(tmp_path):
    """Test that Trainer will override the default in Google COLAB."""
    trainer = Trainer(default_root_dir=tmp_path)
    assert trainer.progress_bar_callback.refresh_rate == 20

    trainer = Trainer(default_root_dir=tmp_path, callbacks=TQDMProgressBar())
    assert trainer.progress_bar_callback.refresh_rate == 20

    trainer = Trainer(default_root_dir=tmp_path, callbacks=TQDMProgressBar(refresh_rate=19))
    assert trainer.progress_bar_callback.refresh_rate == 19
Test that Trainer will override the default in Google COLAB.
tests/tests_pytorch/callbacks/progress/test_tqdm_progress_bar.py