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 or info.get("needs_reset", False):
              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: from collections import deque
  import gym
  import numpy
  from gym import spaces
  import chainerrl
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