def get_trajectories(self, indexes, rollout_length):
<EOL>assert rollout_length > <NUM_LIT:1>, "<STR_LIT>"<EOL>batch_indexes = (<EOL>indexes.reshape(<NUM_LIT:1>, indexes.shape[<NUM_LIT:0>]) - np.arange(rollout_length - <NUM_LIT:1>, -<NUM_LIT:1>, -<NUM_LIT:1>).reshape(rollout_length, <NUM_LIT:1>)<EOL>)<EOL>return self.get_transitions(batch_indexes)<EOL>
Return batch consisting of *consecutive* transitions