Fix custom `tqdm_class` silently broken in non-TTY environments (#4056)
* Fix custom `tqdm_class` silently broken in non-TTY environments
* one more test
* nit
* fix
* Use is_tqdm_disabled in progress bar helper
Co-authored-by: célina <hanouticelina@users.noreply.github.com>
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: célina <hanouticelina@users.noreply.github.com>