code: def save_img(img, path):
      if isinstance(img, np.ndarray):
          cv2.imwrite(path, cv2.cvtColor(img, cv2.COLOR_RGB2BGR))
      else:
          img.save(path)
  
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 11 for calling a global function with example usage: save_img(img, path) without return types