code: def overwrite_pos(
      step_i,
      batch_deltas,
      n_steps_in_epi,
      env,
      p_red_pos,
      p_blue_pos,
      c_red_pos,
      c_blue_pos,
  ):
      assert len(p_red_pos) == n_steps_in_epi
      assert len(p_blue_pos) == n_steps_in_epi
      assert len(c_red_pos) == n_steps_in_epi
      assert len(c_blue_pos) == n_steps_in_epi
      env.red_coin = [
          0
          if c_red_pos[(step_i + delta) % n_steps_in_epi] is None
          else 1
          for delta in batch_deltas
      ]
      coin_pos = [
          c_blue_pos[(step_i + delta) % n_steps_in_epi]
          if c_red_pos[(step_i + delta) % n_steps_in_epi] is None
          else c_red_pos[(step_i + delta) % n_steps_in_epi]
          for delta in batch_deltas
      ]
  
      env.red_pos = [
          p_red_pos[(step_i + delta) % n_steps_in_epi]
          for delta in batch_deltas
      ]
      env.blue_pos = [
          p_blue_pos[(step_i + delta) % n_steps_in_epi]
          for delta in batch_deltas
      ]
      env.coin_pos = coin_pos
  
      env.red_pos = np.array(env.red_pos)
      env.blue_pos = np.array(env.blue_pos)
      env.coin_pos = np.array(env.coin_pos)
      env.red_coin = np.array(env.red_coin)
  
imports: import copy
  import random
  import numpy
  from ray.rllib.examples.env.coin_game_vectorized_env import VectorizedCoinGame, AsymVectorizedCoinGame
  from ray.rllib.examples.env.tests.test_coin_game_non_vectorized_env import assert_obs_is_symmetrical
label_desc: Use image node_id 9 for calling a global function with example usage: overwrite_pos(step_i, batch_deltas, n_steps_in_epi, env, p_red_pos, p_blue_pos, c_red_pos, c_blue_pos) without return types