class_docstr: Simple trajectory data writer. Serializes trajectory data for each episode
  into a separate file using Pickle.
  
  Suitable for smaller scale rollouts or debugging.
  
  :param log_dir: Where trajectory data should be logged.
docstr: Write episode trajectory data to a file using pickle.
  
  :param episode_record: Episode trajectory data
docstr_tok: ["Write","episode","trajectory","data","to","a","file","using","pickle",".",":","param","episode_record",":","Episode","trajectory","data"]
code: def write(self, episode_record: StateTrajectoryRecord) -> None:
      """
      Write episode trajectory data to a file using pickle.
  
      :param episode_record: Episode trajectory data
      """
      filename = episode_record.id + ".pkl"
      with open(self.log_dir / filename, "wb") as out_f:
          pickle.dump(episode_record, out_f)
  
file_path: maze/maze/core/trajectory_recording/writers/trajectory_writer_file.py
imports: import pickle
  from pathlib import Path
  from typing import Union
  from maze.core.annotations import override
  from maze.core.trajectory_recording.records.trajectory_record import StateTrajectoryRecord
  from maze.core.trajectory_recording.writers.trajectory_writer import TrajectoryWriter
label_desc: Use image node_id 2 for calling the TrajectoryWriterFile obj's underlying member method code with example usage: obj.write(episode_record) without return types