code: def tensor_to_rgb(t):
      img = t.cpu().numpy().transpose((1, 2, 0))
      return img.astype(np.uint8)
  
file_path: ignite/examples/references/segmentation/pascal_voc2012/vis.py
imports: import numpy
  import torch
  from PIL import Image
label_desc: Use image node_id 3 for calling a global function with example usage: tensor_to_rgb(t) and returns: img