code: def expand_bbox(bbox, expand_ratio, min_crop_size=None):
      rmin, rmax, cmin, cmax = bbox
      rcenter = 0.5 * (rmin + rmax)
      ccenter = 0.5 * (cmin + cmax)
      height = expand_ratio * (rmax - rmin + 1)
      width = expand_ratio * (cmax - cmin + 1)
      if min_crop_size is not None:
          height = max(height, min_crop_size)
          width = max(width, min_crop_size)
  
      rmin = int(round(rcenter - 0.5 * height))
      rmax = int(round(rcenter + 0.5 * height))
      cmin = int(round(ccenter - 0.5 * width))
      cmax = int(round(ccenter + 0.5 * width))
  
      return rmin, rmax, cmin, cmax
  
file_path: PaddleSeg/EISeg/eiseg/util/misc.py
imports: import paddle
  import numpy
  import pickle
label_desc: Use image node_id 4 for calling a global function with example usage: expand_bbox(bbox, expand_ratio, min_crop_size) and returns: rmin,  rmax,  cmin,  cmax