class_docstr: Base class for encoders.
code: def __init__(self, dictionary):
      super().__init__()
      self.dictionary = dictionary
  
file_path: fairseq/fairseq/models/fairseq_encoder.py
imports: from typing import Dict, List, NamedTuple, Optional
  import torch
  import torch.nn
  from torch import Tensor
label_desc: Use image node_id 1 to create a new FairseqEncoder object from inherited base classes: nn with example: obj = FairseqEncoder(dictionary)