keras/src/callbacks/tensorboard.py/TensorBoard/on_train_end
class TensorBoard:    def on_train_end(self, logs=None):
        self._pop_writer()

        if self._is_tracing:
            self._stop_trace()

        self._close_writers()