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
      )
  
file_path: PARL/examples/Baselines/Halite_competition/paddle/rl_trainer/utils.py
imports: from zerosum_env.envs.halite.helpers import *
  from collections import deque
  from config import config
  import numpy
  import random
label_desc: Use image node_id 3 for calling a global function with example usage: mahattan_distance(pos1, pos2) and returns: unknown