code: def clamp_bbox(bbox, rmin, rmax, cmin, cmax):
      return (
          max(rmin, bbox[0]),
          min(rmax, bbox[1]),
          max(cmin, bbox[2]),
          min(cmax, bbox[3]),
      )
  
file_path: PaddleSeg/EISeg/eiseg/util/misc.py
imports: import paddle
  import numpy
  import pickle
label_desc: Use image node_id 5 for calling a global function with example usage: clamp_bbox(bbox, rmin, rmax, cmin, cmax) and returns: max,  min,  max,  min