code: def convert_cell_to_img(t, padding=16):
      
      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))
docs: Converts pytorch tensor into a Pillow Image. The padding will be removed
      from the resulting image