class_docstr: The Transform that overrides the PyTorch transform to provide
  better transformation speed.
  
  # credits: mannatsingh@fb.com
code: def __call__(self, img: Image):
      assert _is_numpy(img) or _is_pil_image(img)
  
      arr = np.asarray(img)
      arr = np.moveaxis(arr, -1, 0)  # HWC to CHW format
      arr = arr.astype(np.float32) / 255
      return torch.from_numpy(arr)
  
file_path: vissl/vissl/data/ssl_transforms/img_pil_to_tensor.py
imports: import numpy
  import torch
  from classy_vision.dataset.transforms import register_transform
  from classy_vision.dataset.transforms.classy_transform import ClassyTransform
  from PIL import Image
label_desc: Use image node_id 1 for calling the ImgToTensor obj's underlying member method code with example usage: obj.__call__(img) and returns: torch