code: def boundary_iou(src, target):
      """Calculate the IOU between two boundaries.
  
      Args:
         src (list): Source boundary.
         target (list): Target boundary.
  
      Returns:
         iou (float): The iou between two boundaries.
      """
      assert valid_boundary(src, False)
      assert valid_boundary(target, False)
      src_poly = points2polygon(src)
      target_poly = points2polygon(target)
  
      return poly_iou(src_poly, target_poly)
  
file_path: PaddleOCR/ppocr/utils/poly_nms.py
imports: import numpy
  from shapely.geometry import Polygon
label_desc: Use image node_id 5 for calling a global function with example usage: boundary_iou(src, target) and returns: poly_iou