code: def transform(self, image: ndarray, mask: ndarray) -> TPack:
      image = torch.as_tensor(
          image, device=self.device, dtype=torch.float32
      )
      mask = torch.as_tensor(mask, device=self.device)
      image.unsqueeze_(0)
      mask.unsqueeze_(0).unsqueeze_(0)
      return image.permute(0, 3, 1, 2) / 255.0, mask
  
imports: import torch
  from numpy import ndarray
  from torch import Tensor
  from typing import Tuple
  from collections import namedtuple
label_desc: Use image node_id 2 for calling the ToTensor obj's underlying member method code with example usage: obj.transform(image, mask) and returns: unknown,  mask