code: def rectcenter_dist(r1, r2):
      """Return the distance between centers of rectangles <r1> and <r2>"""
      return ptdist(rectcenter(r1), rectcenter(r2))
  
file_path: pdftabextract/pdftabextract/geom.py
imports: import math
  import numpy
label_desc: Use image node_id 10 for calling a global function with example usage: rectcenter_dist(r1, r2) and returns: ptdist