code: def make_action_repeated(env, n_times):
      """Repeat received actions.
  
      - Rewards are accumulated while repeating.
      - Only latest observations are returned.
      """
      old_step = env.step
  
      def step(action):
          r_total = 0
          for _ in range(n_times):
              obs, r, done, info = old_step(action)
              r_total += r
              if done:
                  break
          return obs, r_total, done, info
  
      env.step = step
  
imports: import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: make_action_repeated(env, n_times) and returns: obs,  r_total,  done,  info