code: def convert_cell_to_img(t, padding=16):
      """Converts pytorch tensor into a Pillow Image. The padding will be removed
      from the resulting image"""
      std = torch.Tensor([0.229, 0.224, 0.225]).reshape(-1, 1, 1)
      mu = torch.Tensor([0.485, 0.456, 0.406]).reshape(-1, 1, 1)
      output = t.mul(std)
      output.add_(mu)
      img = to_pil_image(output)
      w, h = img.size
      return img.crop((padding, padding, w - padding, h - padding))
  
file_path: skorch/examples/nuclei_image_segmentation/utils.py
imports: import torch
  import torch.nn
  from torch.nn.functional import binary_cross_entropy_with_logits
  from torchvision.transforms.functional import to_pil_image
  import matplotlib.pyplot
label_desc: Use image node_id 1 for calling a global function with example usage: convert_cell_to_img(t, padding) and returns: img