code: def from_config(
      cls, config, input_size, kernel_size, convolution_type
  ):
      return cls(
          input_size, kernel_size, convolution_type, **config._asdict()
      )
  
file_path: pytext/pytext/models/seq_models/light_conv.py
imports: from typing import Dict, Optional
  import torch.jit
  import torch.nn
  from pytext.config import ConfigBase
  from torch import Tensor
  from .base import PyTextIncrementalDecoderComponent
  from .utils import unfold1d
label_desc: Use image node_id 1 for calling the LightweightConv obj's underlying member method code with example usage: obj.from_config(cls, config, input_size, kernel_size, convolution_type) and returns: cls