keras/src/callbacks/tensorboard.py/TensorBoard/_train_writer
class TensorBoard:    def _train_writer(self):
        if "train" not in self._writers:
            self._writers["train"] = self.summary.create_file_writer(
                self._train_dir
            )
        return self._writers["train"]