code: def from_config(cls, config, models, trg_dict_eos):
      return cls(models, trg_dict_eos, config)
  
file_path: pytext/pytext/torchscript/seq2seq/scripted_seq2seq_generator.py
imports: from typing import Dict, List, Optional, Tuple
  import torch
  from pytext.config import ConfigBase
  from pytext.models.module import Module
  from pytext.torchscript.seq2seq.beam_decode import BeamDecode
  from pytext.torchscript.seq2seq.beam_search import BeamSearch
label_desc: Use image node_id 1 for calling the ScriptedSequenceGenerator obj's underlying member method code with example usage: obj.from_config(cls, config, models, trg_dict_eos) and returns: cls