src/transformers/trainer_callback.py/ProgressCallback/on_evaluate
class ProgressCallback:    def on_evaluate(self, args, state, control, **kwargs):
        if state.is_local_process_zero:
            if self.prediction_bar is not None:
                self.prediction_bar.close()
            self.prediction_bar = None