code: def from_opt(cls, opt, embeddings=None):
      raise NotImplementedError
  
imports: import torch.nn
label_desc: Use image node_id 1 for calling the EncoderBase obj's underlying member method code with example usage: obj.from_opt(cls, opt, embeddings) without return types