code: def num_time_steps(self):
      
  
      num_time_steps = sum(t.num_time_steps for t in self.trajectories)
      return num_time_steps + self.num_completed_time_steps
docs: Returns the number of time-steps in completed and incomplete trajectories.