code: def get_size(img):
      if isinstance(img, (np.ndarray, torch.Tensor)):
          return img.shape[1::-1]
      else:
          return img.size
  
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 12 for calling a global function with example usage: get_size(img) and returns: img, img