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 __repr__(self):
      return (
          f"\nTrajectory record:\n"
          f"   ID: {self.id}\n"
          f"   Length: {len(self)}"
      )
  
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 5 for calling the TrajectoryRecord obj's underlying member method code with example usage: obj.__repr__() and returns: str, self, str, len