docstr: Return only every `skip`-th frame (frameskipping)
  
  :param env: (Gym Environment) the environment
  :param skip: (int) number of `skip`-th frame
docstr_tok: ["Return","only","every","`","skip","`","-th","frame","(","frameskipping",")",":","param","env",":","(","Gym","Environment",")","the","environment",":","param","skip",":","(","int",")","number","of","`","skip","`","-th","frame"]
code: def __init__(self, env, skip=4):
      """
      Return only every `skip`-th frame (frameskipping)
  
      :param env: (Gym Environment) the environment
      :param skip: (int) number of `skip`-th frame
      """
      gym.Wrapper.__init__(self, env)
      # most recent raw observations (for max pooling across time steps)
      self._obs_buffer = np.zeros(
          (2,) + env.observation_space.shape,
          dtype=env.observation_space.dtype,
      )
      self._skip = skip
  
imports: from collections import deque
  import numpy
  import gym
  from gym import spaces
  import cv2
label_desc: Use image node_id 1 to create a new MaxAndSkipEnv object from inherited base classes: gym with example: obj = MaxAndSkipEnv(env, skip)