code: def reset(self):
          
          self.stepid = 0
  
          for task, agent in zip(self.tasks, self.agents):
              task.reset()
  
              agent.module.reset()
              agent.history.reset()
docs: Sets initial conditions for the experiment.