code: def rect_from_text(t):
      """create a rectangle from a text box <t>"""
      return rect(t["topleft"], t["bottomright"])
  
file_path: pdftabextract/pdftabextract/geom.py
imports: import math
  import numpy
label_desc: Use image node_id 8 for calling a global function with example usage: rect_from_text(t) and returns: rect