code: def pad(boxes, w, h):
      boxes = boxes.trunc().int().cpu().numpy()
      x = boxes[:, 0]
      y = boxes[:, 1]
      ex = boxes[:, 2]
      ey = boxes[:, 3]
  
      x[x < 1] = 1
      y[y < 1] = 1
      ex[ex > w] = w
      ey[ey > h] = h
  
      return y, ey, x, ex
  
imports: import torch
  from torch.nn.functional import interpolate
  from torchvision.transforms import functional
  from torchvision.ops.boxes import batched_nms
  from PIL import Image
  import numpy
  import os
  import math
label_desc: Use image node_id 7 for calling a global function with example usage: pad(boxes, w, h) and returns: y,  ey,  x,  ex