code: def next_trials(self):
          
          trials = list(self._trial_generator)
          if self._shuffle:
              random.shuffle(trials)
          self._finished = True
          return trials
docs: Provides Trial objects to be queued into the TrialRunner.
  
          Returns:
              trials (list): Returns a list of trials.