class_docstr: Basically a batch of active trajectories and a list of completed ones.
class_docstr_tok: ["Basically","a","batch","of","active","trajectories","and","a","list","of","completed","ones","."]
docstr: Essentially same as reset, but we don't have observations.
code: def complete_all_trajectories(self):
      """Essentially same as reset, but we don't have observations."""
      for index in range(self.batch_size):
          trajectory = self._trajectories[index]
          # TODO(pkozakowski): This assertion breaks something in SimPLe trajectory
          # collection code - we're probably doing something wrong there. Commenting
          # out the assertion as a temporary measure.
          # assert trajectory.is_active
          if trajectory.is_active:
              self._complete_trajectory(trajectory, index)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import pickle
  import re
  import sys
  import time
  from absl import logging
  import cloudpickle
  import numpy
  from tensor2tensor.envs import time_step
  import tensorflow.compat.v1
label_desc: Use image node_id 10 for calling the BatchTrajectory obj's underlying member method code with example usage: obj.complete_all_trajectories() without return types