code: def __init__(self):
      super().__init__()
      self.device = ""
      self.seq_padding_control = torch.jit.Attribute(
          None, Optional[List[int]]
      )
      self.batch_padding_control = torch.jit.Attribute(
          None, Optional[List[int]]
      )
  
imports: from typing import List, Optional, Tuple
  import torch
  from pytext.torchscript.utils import pad_2d_float, pad_3d_float, validate_padding_control
  from pytext.torchscript.vocab import ScriptVocabulary
  from pytorch.text.fb.utils.transform_utils import pad_2d
label_desc: Use image node_id 1 to create a new ScriptTensorizer object from inherited base classes: torch.jit with example: obj = ScriptTensorizer()