class_docstr: Combo FiD Model.
  
  This model receives a new input that indicates which batch items require
  retrieval/FiD encoding, and which can be used in a standard encoder/decoder pass.
class_docstr_tok: ["Combo","FiD","Model",".","This","model","receives","a","new","input","that","indicates","which","batch","items","require","retrieval\/FiD","encoding",",","and","which","can","be","used","in","a","standard","encoder\/decoder","pass","."]
code: def __init__(
      self, opt: Opt, dictionary: DictionaryAgent, retriever_shared=None
  ):
      super().__init__(opt, dictionary, retriever_shared)
      self.top_docs = []
  
imports: import torch
  from typing import List, Tuple, Optional, Dict, Any
  from parlai.agents.fid.fid import FidModel
  from parlai.agents.rag.args import RetrieverType
  from parlai.agents.rag.retrievers import Document, BLANK_DOC, SearchQuerySearchEngineRetriever, RagRetriever, retriever_factory
  from parlai.core.dict import DictionaryAgent
  from parlai.core.opt import Opt
  import parlai.utils.logging
label_desc: Use image node_id 1 to create a new ComboFidModel object from inherited base classes: FidModel with example: obj = ComboFidModel(opt, dictionary, retriever_shared)