code: def _start_new_episode(self):
          
  
          # flush any data left over from the previous episode if any interactions have happened
          if self.has_interaction:
              self._flush()
  
          # timesteps in current episode
          self.t = 0
          self.has_interaction = False
docs: Bookkeeping to do at the start of each new episode.