code: def imresample(img, sz):
      im_data = interpolate(img, size=sz, mode="area")
      return im_data
  
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 9 for calling a global function with example usage: imresample(img, sz) and returns: im_data