docstr: Repeat action, sum reward, and max over last observations.
docstr_tok: ["Repeat","action",",","sum","reward",",","and","max","over","last","observations","."]
code: def step(self, action):
      """Repeat action, sum reward, and max over last observations."""
      total_reward = 0.0
      done = None
      for i in range(self._skip):
          obs, reward, done, info = self.env.step(action)
          if i == self._skip - 2:
              self._obs_buffer[0] = obs
          if i == self._skip - 1:
              self._obs_buffer[1] = obs
          total_reward += reward
          if done:
              break
      # Note that the observation on the done=True frame
      # doesn't matter
      max_frame = self._obs_buffer.max(axis=0)
  
      return max_frame, total_reward, done, info
  
imports: import time
  import numpy
  from collections import deque
  import gym
  from gym import spaces
  from parl.env.compat_wrappers import CompatWrapper, is_gym_version_ge, V_NPRANDOM_CHANGED
  import cv2
label_desc: Use image node_id 2 for calling the MaxAndSkipEnv obj's underlying member method code with example usage: obj.step(action) and returns: max_frame,  total_reward,  done,  info