class_docstr: Converts a PIL, numpy or CV image to a torch.long representation
class_docstr_tok: ["Converts","a","PIL",",","numpy","or","CV","image","to","a","torch.long","representation"]
code: def __call__(self, img):
      return th.from_numpy(np.array(img, dtype=np.int32)).long()
  
imports: import random
  import torch
  from torchvision.transforms.functional import to_tensor
  import numpy
  from ..utils import th_random_choice
label_desc: Use image node_id 1 for calling the MaskToTensor obj's underlying member method code with example usage: obj.__call__(img) and returns: th