class_docstr: Simple setup for trajectory data recording.
  
  Trajectory data will be serialized into `trajectory_data` directory, one file per episode.
class_docstr_tok: ["Simple","setup","for","trajectory","data","recording",".","Trajectory","data","will","be","serialized","into","`","trajectory_data","`","directory",",","one","file","per","episode","."]
docstr: Ensure the trajectory data are written out in case the rollout ended in the middle of episode
  (without env reset at the end).
docstr_tok: ["Ensure","the","trajectory","data","are","written","out","in","case","the","rollout","ended","in","the","middle","of","episode","(","without","env","reset","at","the","end",")","."]
code: def __exit__(self, exc_type, exc_val, exc_tb) -> None:
      """
      Ensure the trajectory data are written out in case the rollout ended in the middle of episode
      (without env reset at the end).
      """
      self.env.reset()
  
imports: from maze.core.trajectory_recording.writers.trajectory_writer_file import TrajectoryWriterFile
  from maze.core.trajectory_recording.writers.trajectory_writer_registry import TrajectoryWriterRegistry
  from maze.core.wrappers.trajectory_recording_wrapper import TrajectoryRecordingWrapper
label_desc: Use image node_id 3 for calling the SimpleTrajectoryRecordingSetup obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_val, exc_tb) without return types