code: def from_config(cls, config: Config, model: torch.nn.Module):
      return cls(
          model.parameters(), config.lr, config.weight_decay, config.eps
      )
  
imports: import torch
  from fairseq.utils import clip_grad_norm_
  from pytext.config import ConfigBase
  from pytext.config.component import Component, ComponentType
label_desc: Use image node_id 2 for calling the Adam obj's underlying member method code with example usage: obj.from_config(cls, config, model) and returns: cls