code: def expand(pix, det_box, shape):
      x0, y0, x1, y1 = det_box
      #     print(shape)
      h, w, c = shape
      tmp_x0 = x0 - pix
      tmp_x1 = x1 + pix
      tmp_y0 = y0 - pix
      tmp_y1 = y1 + pix
      x0_ = tmp_x0 if tmp_x0 >= 0 else 0
      x1_ = tmp_x1 if tmp_x1 <= w else w
      y0_ = tmp_y0 if tmp_y0 >= 0 else 0
      y1_ = tmp_y1 if tmp_y1 <= h else h
      return x0_, y0_, x1_, y1_
  
imports: import os
  import sys
  import cv2
  import copy
  import logging
  import numpy
  import time
  import tools.infer.predict_rec
  import tools.infer.predict_det
  import tools.infer.utility
  from tools.infer.predict_system import sorted_boxes
  from ppocr.utils.utility import get_image_file_list, check_and_read
  from ppocr.utils.logging import get_logger
  from ppstructure.table.matcher import TableMatch
  from ppstructure.table.table_master_match import TableMasterMatcher
  from ppstructure.utility import parse_args
  import ppstructure.table.predict_structure
label_desc: Use image node_id 1 for calling a global function with example usage: expand(pix, det_box, shape) and returns: x0_,  y0_,  x1_,  y1_