code: def torch_to_numpy(img):
      img = img.numpy()
      if img.max() > 1:
          img /= 255
      return img.transpose((1, 2, 0))
  
imports: import os
  import numpy
  from sahi.utils.import_utils import is_available
label_desc: Use image node_id 3 for calling a global function with example usage: torch_to_numpy(img) and returns: img