code: def tensor_to_numpy(t: torch.Tensor) -> np.ndarray:
      img = t.cpu().numpy().transpose((1, 2, 0))
      return img.astype(np.uint8)
  
imports: from typing import Callable, Optional
  import numpy
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: tensor_to_numpy(t) and returns: img