def METHOD_NAME(self):
    if self.mode not in self._writers:
        self._writers[self.mode] = create_file_writer(
            os.path.join(self._log_dir, self.mode.value)
        )
    return self._writers[self.mode]