code: def adjust_bbox(bbox, img_shape, pad_scale=0.0):
      """adjust box according to img_shape and pad_scale
  
      Args:
          bbox (list):[x1, y1, x2, y2]
          img_shape (tuple): (height, width)
          pad_scale (float): scale for padding
  
      Returns:
          bbox (list)
      """
      bbox = square(bbox, img_shape)
      bbox = padding(bbox, img_shape, pad_scale)
      return bbox
  
imports: import numpy
  from PIL import Image, ImageDraw
label_desc: Use image node_id 3 for calling a global function with example usage: adjust_bbox(bbox, img_shape, pad_scale) and returns: bbox