class_docstr: Poly-encoder agent that allows for adding label to fixed cands.
class_docstr_tok: ["Poly-encoder","agent","that","allows","for","adding","label","to","fixed","cands","."]
docstr: Add cmd line args.
docstr_tok: ["Add","cmd","line","args","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      """
      Add cmd line args.
      """
      AddLabelFixedCandsTRA.add_cmdline_args(
          parser, partial_opt=partial_opt
      )
      PolyencoderAgent.add_cmdline_args(parser, partial_opt=partial_opt)
      return parser
  
imports: from parlai.core.params import ParlaiParser
  from typing import Any, Dict, Optional, Tuple
  import torch
  from parlai.core.opt import Opt
  from parlai.core.torch_ranker_agent import TorchRankerAgent
  from parlai.core.torch_agent import Batch
  from parlai.utils.misc import recursive_getattr
  from parlai.utils.logging import logging
  from .biencoder import AddLabelFixedCandsTRA
  from .modules import BasicAttention, MultiHeadAttention, TransformerEncoder
  from .transformer import TransformerRankerAgent
label_desc: Use image node_id 1 for calling the IRFriendlyPolyencoderAgent obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser