code: def __find_min_point(i_list, o_list):
      min_dis = 1e7
      idx_i = -1
      idx_o = -1
      for i in range(len(i_list)):
          for o in range(len(o_list)):
              dis = math.sqrt(
                  (i_list[i][0] - o_list[o][0]) ** 2
                  + (i_list[i][1] - o_list[o][1]) ** 2
              )
              if dis <= min_dis:
                  min_dis = dis
                  idx_i = i
                  idx_o = o
      return idx_i, idx_o
  
file_path: PaddleSeg/EISeg/eiseg/util/polygon.py
imports: from enum import Enum
  import cv2
  import numpy
  import math
  from .regularization import boundary_regularization
label_desc: Use image node_id 3 for calling a global function with example usage: __find_min_point(i_list, o_list) and returns: idx_i,  idx_o