class_docstr: Environment wrapper that stops episode at step max_episode_length.
class_docstr_tok: ["Environment","wrapper","that","stops","episode","at","step","max_episode_length","."]
docstr: Create an AutoStepEnv.
  
  Args:
      env (gym.Env): Environment to be wrapped.
      env_name (str): Name of the environment.
      max_episode_length (int): Maximum length of the episode.
docstr_tok: ["Create","an","AutoStepEnv",".","Args",":","env","(","gym.Env",")",":","Environment","to","be","wrapped",".","env_name","(","str",")",":","Name","of","the","environment",".","max_episode_length","(","int",")",":","Maximum","length","of","the","episode","."]
code: def __init__(self, env=None, env_name="", max_episode_length=100):
      """Create an AutoStepEnv.
  
      Args:
          env (gym.Env): Environment to be wrapped.
          env_name (str): Name of the environment.
          max_episode_length (int): Maximum length of the episode.
      """
      if env_name:
          super().__init__(gym.make(env_name))
      else:
          super().__init__(env)
  
      self._episode_step = 0
      self._max_episode_length = max_episode_length
  
imports: import gym
label_desc: Use image node_id 1 to create a new AutoStopEnv object from inherited base classes: gym with example: obj = AutoStopEnv(env, env_name, max_episode_length)