code: def add_cmdline_args(cls, parser, partial_opt=None):
      super().add_cmdline_args(parser, partial_opt=partial_opt)
      group = parser.add_argument_group("Search Query FiD Params")
  
      # Search Query generator
      group.add_argument(
          "--search-query-generator-model-file",
          type=str,
          help="Path to a query generator model.",
      )
      group.add_argument(
          "--search-query-generator-inference",
          type=str,
          default="greedy",
          help="Generation algorithm for the search query generator model",
      )
      group.add_argument(
          "--search-query-generator-beam-min-length",
          type=int,
          default=1,
          help="The beam_min_length opt for the search query generator model",
      )
      group.add_argument(
          "--search-query-generator-beam-size",
          type=int,
          default=1,
          help="The beam_size opt for the search query generator model",
      )
      group.add_argument(
          "--search-query-generator-text-truncate",
          type=int,
          default=512,
          help="Truncates the input to the search query generator model",
      )
  
      # Creating chunks and spliting the documents
      group.add_argument(
          "--splitted-chunk-length",
          type=int,
          default=RETRIEVER_DOC_LEN_TOKENS,
          help="The number of tokens in each document split",
      )
      group.add_argument(
          "--doc-chunk-split-mode",
          type=str,
          choices=["word", "token"],
          default="word",
          help="split the docs by white space (word) or dict tokens.",
      )
      group.add_argument(
          "--n-ranked-doc-chunks",
          type=int,
          default=1,
          help="Number of document chunks to keep if documents is too long and has to be splitted.",
      )
      group.add_argument(
          "--doc-chunks-ranker",
          type=str,
          choices=["tfidf", "head", "woi_chunk_retrieved_docs"],
          default="head",
          help="How to rank doc chunks.",
      )
      parser.add_argument(
          "--woi-doc-chunk-size",
          default=500,
          type=int,
          help="Document chunk size (in characters).",
      )
  
      return parser
  
imports: from abc import abstractmethod
  from copy import deepcopy
  import torch
  import random
  from typing import Tuple, Union, Optional, List, Dict, Any
  from parlai.core.dict import DictionaryAgent
  from parlai.core.opt import Opt
  from parlai.core.message import Message
  from parlai.agents.transformer.transformer import TransformerGeneratorModel
  from parlai.agents.rag.args import RetrieverType
  from parlai.agents.rag.modules import RagModel, Document, T5RagModel
  from parlai.agents.rag.rag import RagAgent
  from parlai.agents.rag.model_types import RagToken, get_forced_decoder_inputs, fix_incremental_state
  from parlai.utils.typing import TShared
  import parlai.utils.logging
  from parlai.tasks.wizard_of_internet import constants
label_desc: Use image node_id 1 for calling the SearchQueryFiDAgent obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser