class_docstr: Common functionality of trajectory records.
  
  :param id: ID of the trajectory. Can be a string ID or any other data (like environment seeding information).
code: def __init__(self, id: Any):
      self.id = id
      self.step_records: List[StepRecordType] = []
  
imports: from typing import List, Optional, Any, TypeVar, Generic, Dict, Union
  import numpy
  from maze.core.env.action_conversion import ActionType, TorchActionType
  from maze.core.rendering.renderer import Renderer
  from maze.core.trajectory_recording.records.state_record import StateRecord
  from maze.core.trajectory_recording.records.structured_spaces_record import StructuredSpacesRecord, StepKeyType
label_desc: Use image node_id 1 to create a new TrajectoryRecord object from inherited base classes: Generic with example: obj = TrajectoryRecord(id)