code: def from_config(
      cls,
      config: Config,
      source_vocab,
      source_embedding,
      target_vocab,
      target_embedding,
  ):
      out_vocab_size = len(target_vocab)
      encoder = create_module(config.encoder)
      decoder = create_module(
          config.decoder, out_vocab_size, target_embedding
      )
      return cls(encoder, decoder, source_embedding)
  
file_path: pytext/pytext/models/seq_models/rnn_encoder_decoder.py
imports: from typing import Dict, List, Optional
  import torch.jit
  from pytext.config import ConfigBase
  from pytext.models.module import create_module
  from pytext.utils.usage import log_class_usage
  from .base import PyTextSeq2SeqModule
  from .rnn_decoder import RNNDecoder
  from .rnn_encoder import LSTMSequenceEncoder
label_desc: Use image node_id 3 for calling the RNNModel obj's underlying member method code with example usage: obj.from_config(cls, config, source_vocab, source_embedding, target_vocab, target_embedding) and returns: cls