docstr: Make end-of-life == end-of-episode, but only reset on true game over.
  Done by DeepMind for the DQN and co. since it helps value estimation.
docstr_tok: ["Make","end-of-life","==","end-of-episode",",","but","only","reset","on","true","game","over",".","Done","by","DeepMind","for","the","DQN","and","co.","since","it","helps","value","estimation","."]
code: def __init__(self, env):
      """Make end-of-life == end-of-episode, but only reset on true game over.
      Done by DeepMind for the DQN and co. since it helps value estimation.
      """
      gym.Wrapper.__init__(self, env)
      self.lives = 0
      self.was_real_done = True
  
imports: import time
  import numpy
  from collections import deque
  import gym
  from gym import spaces
  from parl.env.compat_wrappers import CompatWrapper, is_gym_version_ge, V_NPRANDOM_CHANGED
  import cv2
label_desc: Use image node_id 1 to create a new EpisodicLifeEnv object from inherited base classes: gym with example: obj = EpisodicLifeEnv(env)