code: def pause_trial(self, trial):
          
          assert trial.status == Trial.RUNNING, trial.status
          try:
              self.save(trial, Checkpoint.MEMORY)
              self.stop_trial(trial, stop_logger=False)
              self.set_status(trial, Trial.PAUSED)
          except Exception:
              logger.exception("Error pausing runner.")
              self.set_status(trial, Trial.ERROR)
docs: Pauses the trial.
  
          We want to release resources (specifically GPUs) when pausing an
          experiment. This results in PAUSED state that similar to TERMINATED.