class_docstr: Action repeat wrapper.
class_docstr_tok: ["Action","repeat","wrapper","."]
code: def step(self, action: types.NestedArray) -> dm_env.TimeStep:
      # Initialize accumulated reward and discount.
      reward = 0.0
      discount = 1.0
  
      # Step the environment by repeating action.
      for _ in range(self._num_repeats):
          timestep = self._environment.step(action)
  
          # Accumulate reward and discount.
          reward += timestep.reward * discount
          discount *= timestep.discount
  
          # Don't go over episode boundaries.
          if timestep.last():
              break
  
      # Replace the final timestep's reward and discount.
      return timestep._replace(reward=reward, discount=discount)
  
imports: from acme import types
  from acme.wrappers import base
  import dm_env
label_desc: Use image node_id 2 for calling the ActionRepeatWrapper obj's underlying member method code with example usage: obj.step(action) and returns: timestep