code: def from_config(
      cls,
      config: Config,
      src_dict,
      source_embedding,
      tgt_dict,
      target_embedding,
      dict_embedding=None,
  ):
      cls.validate_config(config)
      encoder = create_module(
          config.encoder, src_dict, source_embedding
      )
      decoder = create_module(
          config.decoder, tgt_dict, target_embedding
      )
      return cls(encoder, decoder, source_embedding)
  
file_path: pytext/pytext/models/seq_models/conv_model.py
imports: from typing import Dict, List, Optional, Tuple, Union
  from pytext.config import ConfigBase
  from pytext.models.module import create_module
  from torch import Tensor
  from .base import PyTextSeq2SeqModule
  from .conv_decoder import LightConvDecoder, LightConvDecoupledDecoder
  from .conv_encoder import LightConvEncoder
label_desc: Use image node_id 1 for calling the CNNModel obj's underlying member method code with example usage: obj.from_config(cls, config, src_dict, source_embedding, tgt_dict, target_embedding, dict_embedding) and returns: cls