code: def make_box(poly):
      x = []
      y = []
      for p in poly:
          for point in p:
              x.append(point[0])
              y.append(point[1])
      xmax = max(x)
      ymax = max(y)
      xmin = min(x)
      ymin = min(y)
      return (xmin, ymin, xmax, ymax)
  
imports: import os
  import traceback
  import sys
  import cv2
  import numpy
  from PIL import Image
  from scipy.ndimage.filters import rank_filter
  import pytesseract
label_desc: Use image node_id 6 for calling a global function with example usage: make_box(poly) and returns: xmin,  ymin,  xmax,  ymax