code: def get_player(
      rom,
      image_size,
      viz=False,
      train=False,
      frame_skip=1,
      context_len=1,
  ):
      env = AtariPlayer(
          rom,
          frame_skip=frame_skip,
          viz=viz,
          live_lost_as_eoe=train,
          max_num_frames=60000,
      )
      env = FireResetEnv(env)
      env = MapState(env, lambda im: cv2.resize(im, image_size))
      if not train:
          # in training, context is taken care of in expreplay buffer
          env = FrameStack(env, context_len)
      return env
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_player(rom, image_size, viz, train, frame_skip, context_len) and returns: env