class_docstr: Episodic life wrapper for gym.Env.
  
  This wrapper makes episode end when a life is lost, but only reset
  when all lives are lost.
  
  Args:
      env: The environment to be wrapped.
class_docstr_tok: ["Episodic","life","wrapper","for","gym.Env",".","This","wrapper","makes","episode","end","when","a","life","is","lost",",","but","only","reset","when","all","lives","are","lost",".","Args",":","env",":","The","environment","to","be","wrapped","."]
docstr: gym.Env reset function.
  
  Reset only when lives are lost.
docstr_tok: ["gym.Env","reset","function",".","Reset","only","when","lives","are","lost","."]
code: def reset(self, **kwargs):
      """
      gym.Env reset function.
  
      Reset only when lives are lost.
      """
      if self._was_real_done:
          obs = self.env.reset(**kwargs)
      else:
          # no-op step
          obs, _, _, _ = self.env.step(0)
      self._lives = self.env.unwrapped.ale.lives()
      return obs
  
imports: import gym
label_desc: Use image node_id 3 for calling the EpisodicLife obj's underlying member method code with example usage: obj.reset() and returns: obs