code: def should_merge_blocks(box1, box2, tol=5):
      # Within tol y px, and to the right within tol px
      merge = [
          box2[0] > box1[0],  # After in the x coordinate
          abs(box2[1] - box1[1]) < tol,  # Within tol y px
          abs(box2[3] - box1[3]) < tol,  # Within tol y px
          abs(box2[0] - box1[2]) < tol,  # Within tol x px
      ]
      return all(merge)
  
file_path: pdf-to-markdown/marker/bbox.py
imports: import fitz
label_desc: Use image node_id 1 for calling a global function with example usage: should_merge_blocks(box1, box2, tol) and returns: all