code: def make_atari(env_id, max_frames=30 * 60 * 60):
      env = gym.make(env_id)
      assert "NoFrameskip" in env.spec.id
      assert isinstance(env, gym.wrappers.TimeLimit)
      # Unwrap TimeLimit wrapper because we use our own time limits
      env = env.env
      if max_frames:
          env = pfrl.wrappers.ContinuingTimeLimit(
              env, max_episode_steps=max_frames
          )
      env = NoopResetEnv(env, noop_max=30)
      env = MaxAndSkipEnv(env, skip=4)
      return env
  
imports: from collections import deque
  import gym
  import numpy
  from gym import spaces
  from packaging import version
  import pfrl
label_desc: Use image node_id 1 for calling a global function with example usage: make_atari(env_id, max_frames) and returns: env