code: def tensorize(self, batch):
      tokens, seq_lens, token_ranges = zip(*batch)
      masked_source, masked_target = self.mask_and_tensorize(tokens)
      return (
          pad_and_tensorize(tokens, self.vocab.get_pad_index()),
          pad_and_tensorize(seq_lens),
          pad_and_tensorize(token_ranges),
          masked_source,
          masked_target,
      )
  
file_path: pytext/pytext/data/masked_tensorizer.py
imports: import torch
  from pytext.config.component import ComponentType, create_component
  from pytext.data.masked_util import MaskedVocabBuilder, MaskingFunction, RandomizedMaskingFunction
  from pytext.data.tensorizers import TokenTensorizer
  from pytext.data.utils import pad, pad_and_tensorize
  from pytext.utils import cuda
label_desc: Use image node_id 4 for calling the MaskedTokenTensorizer obj's underlying member method code with example usage: obj.tensorize(batch) and returns: pad_and_tensorize,  pad_and_tensorize,  pad_and_tensorize,  masked_source,  masked_target