docstr: Return only every `skip`-th frame
code: def __init__(self, env, skip=4):
      """Return only every `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 gymnasium
  from gymnasium import spaces
  import numpy
  from typing import Union
  from ray.rllib.utils.annotations import PublicAPI
  from ray.rllib.utils.images import rgb2gray, resize
label_desc: Use image node_id 1 to create a new MaxAndSkipEnv object from inherited base classes: gym with example: obj = MaxAndSkipEnv(env, skip)