code: def get_trajectories(self, index, rollout_length, history_length):
          
          indexes = np.arange(index - rollout_length + 1, index + 1, dtype=int)
          return self.get_transitions(indexes, history_length)
docs: Return batch consisting of *consecutive* transitions