code: def mahattan_distance(pos1, pos2):
      offset_x = abs(pos1[0] - pos2[0])
      offset_y = abs(pos1[1] - pos2[1])
  
      return min(offset_x, size - offset_x) + min(
          offset_y, size - offset_y
      )
  
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 6 for calling a global function with example usage: mahattan_distance(pos1, pos2) and returns: unknown