code: def get_new_position(pos, action):
      tmp = [pos[0], pos[1]]
      if action == ShipAction.UP:
          tmp[0] = (pos[0] - 1 + size) % size
      elif action == ShipAction.DOWN:
          tmp[0] = (pos[0] + 1 + size) % size
      elif action == ShipAction.LEFT:
          tmp[1] = (pos[1] - 1 + size) % size
      elif action == ShipAction.RIGHT:
          tmp[1] = (pos[1] + 1 + size) % size
  
      return tmp
  
imports: import base64
  import pickle
  import random
  import numpy
  from zerosum_env.envs.halite.helpers import *
  from zerosum_env import make, evaluate
  from collections import deque
  import parl
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.distribution import Categorical
label_desc: Use image node_id 4 for calling a global function with example usage: get_new_position(pos, action) and returns: tmp