code: def boxes_intersect_pct(box1, box2, pct=0.9):
      # determine the coordinates of the intersection rectangle
      x_left = max(box1[0], box2[0])
      y_top = max(box1[1], box2[1])
      x_right = min(box1[2], box2[2])
      y_bottom = min(box1[3], box2[3])
  
      if x_right < x_left or y_bottom < y_top:
          return 0.0
  
      # The intersection of two axis-aligned bounding boxes is always an
      # axis-aligned bounding box
      intersection_area = (x_right - x_left) * (y_bottom - y_top)
  
      # compute the area of both AABBs
      bb1_area = (box1[2] - box1[0]) * (box1[3] - box1[1])
      bb2_area = (box2[2] - box2[0]) * (box2[3] - box2[1])
  
      iou = intersection_area / float(
          bb1_area + bb2_area - intersection_area
      )
      return iou > pct
  
file_path: pdf-to-markdown/marker/bbox.py
imports: import fitz
label_desc: Use image node_id 4 for calling a global function with example usage: boxes_intersect_pct(box1, box2, pct) and returns: unknown, int