code: def __init__(
      self,
      tokenizer: torch.jit.ScriptModule,
      token_vocab: ScriptVocabulary,
      language_vocab: ScriptVocabulary,
      max_seq_len: int,
      default_language: str,
  ):
      super().__init__()
      self.tokenizer = tokenizer
      self.token_vocab = token_vocab
      self.language_vocab = language_vocab
      self.token_vocab_lookup = VocabLookup(token_vocab)
      self.language_vocab_lookup = VocabLookup(language_vocab)
  
      self.max_seq_len = torch.jit.Attribute(max_seq_len, int)
      self.default_language = torch.jit.Attribute(default_language, str)
  
file_path: pytext/pytext/torchscript/tensorizer/xlm.py
imports: from typing import List, Optional, Tuple
  import torch
  from pytext.torchscript.utils import pad_2d_mask
  from pytext.torchscript.vocab import ScriptVocabulary
  from .tensorizer import ScriptTensorizer, VocabLookup
label_desc: Use image node_id 1 to create a new ScriptXLMTensorizer object from inherited base classes: ScriptTensorizer with example: obj = ScriptXLMTensorizer(tokenizer, token_vocab, language_vocab, max_seq_len, default_language)