class_docstr: Handles registration of trajectory data writers. Registered writers will
  be forwarded episode trajectory data at the end of each episode.
class_docstr_tok: ["Handles","registration","of","trajectory","data","writers",".","Registered","writers","will","be","forwarded","episode","trajectory","data","at","the","end","of","each","episode","."]
docstr: Register a writer. Each writer will receive all globally recorded trajectory data.
  
  :param writer: Trajectory writer to register.
docstr_tok: ["Register","a","writer",".","Each","writer","will","receive","all","globally","recorded","trajectory","data",".",":","param","writer",":","Trajectory","writer","to","register","."]
code: def register_writer(cls, writer: TrajectoryWriter) -> None:
      """
      Register a writer. Each writer will receive all globally recorded trajectory data.
  
      :param writer: Trajectory writer to register.
      """
      cls.writers.append(writer)
  
imports: from typing import List
  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 1 for calling the TrajectoryWriterRegistry obj's underlying member method code with example usage: obj.register_writer(cls, writer) without return types