class_docstr: Information Retrieval baseline.
docstr: Add command line args specific to this agent.
docstr_tok: ["Add","command","line","args","specific","to","this","agent","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      """
      Add command line args specific to this agent.
      """
      parser = parser.add_argument_group("IrBaseline Arguments")
      parser.add_argument(
          "-lp",
          "--length_penalty",
          type=float,
          default=0.5,
          help="length penalty for responses",
      )
      parser.add_argument(
          "-hsz",
          "--history_size",
          type=int,
          default=1,
          help="number of utterances from the dialogue history to take use "
          "as the query",
      )
      parser.add_argument(
          "--label_candidates_file",
          type=str,
          default=None,
          help="file of candidate responses to choose from",
      )
      cls.dictionary_class().add_cmdline_args(
          parser, partial_opt=partial_opt
      )
      return parser
  
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  import math
  from collections.abc import Sequence
  import heapq
  import json
  import parlai.utils.torch
  from parlai.core.agents import Agent
  from parlai.core.dict import DictionaryAgent
  from parlai.utils.io import PathManager
label_desc: Use image node_id 1 for calling the IrBaselineAgent obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser