code: def cal_distance(p1, p2):
      delta_x = p1[0] - p2[0]
      delta_y = p1[1] - p2[1]
      d = math.sqrt((delta_x**2) + (delta_y**2))
      return d
  
imports: import os
  import re
  import cv2
  import glob
  import copy
  import math
  import pickle
  import numpy
  from shapely.geometry import Polygon, MultiPoint
label_desc: Use image node_id 7 for calling a global function with example usage: cal_distance(p1, p2) and returns: d