code: def from_config(cls, config: Config):
      tokenizer = create_component(
          ComponentType.TOKENIZER, config.tokenizer
      )
      mask = create_component(
          ComponentType.MASKING_FUNCTION,
          config.masking_function,
          config.add_bos_token,
          config.add_eos_token,
      )
      return cls(
          text_column=config.column,
          mask=mask,
          tokenizer=tokenizer,
          add_bos_token=config.add_bos_token,
          add_eos_token=config.add_eos_token,
          use_eos_token_for_bos=config.use_eos_token_for_bos,
          max_seq_len=config.max_seq_len,
          vocab_config=config.vocab,
          vocab_file_delimiter=config.vocab_file_delimiter,
          is_input=config.is_input,
      )
  
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 1 for calling the MaskedTokenTensorizer obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls