class_docstr: Generator Rerank Agent.
  
  Utilize a classifier/predictor model as re-ranker with a generative agent.
class_docstr_tok: ["Generator","Rerank","Agent",".","Utilize","a","classifier\/predictor","model","as","re-ranker","with","a","generative","agent","."]
docstr: Add command-line arguments specifically for this agent.
docstr_tok: ["Add","command-line","arguments","specifically","for","this","agent","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      """
      Add command-line arguments specifically for this agent.
      """
      AbstractReranker.add_cmdline_args(parser)
      parser.set_defaults(skip_generation=False)
      gen_agent = parser.add_argument_group("Generator Rerank Agent")
      gen_agent.add_argument(
          "--inference-strategies",
          type=str,
          default=None,
          help="comma-separated list of inference strategies. "
          "if specified, re-rank over several inference strategies",
      )
      gen_agent.add_argument(
          "--debug-mode",
          type="bool",
          default=False,
          help="specify to enable certain debugging procedures.",
      )
      gen_agent.add_argument(
          "--inference-opt-key",
          type=str,
          default="inference",
          help="specify inference opt key for dialogue response model",
      )
  
      return parser
  
imports: import logging
  import torch
  from abc import ABC, abstractmethod, abstractclassmethod
  from typing import List, Optional, Tuple
  from parlai.agents.transformer.transformer import TransformerGeneratorAgent
  from parlai.core.agents import create_agent_from_model_file, Agent
  from parlai.core.build_data import modelzoo_path
  from parlai.core.message import Message
  from parlai.core.opt import Opt
  from parlai.core.params import ParlaiParser
  from parlai.core.torch_agent import TorchAgent
  from parlai.utils.strings import normalize_reply
  from parlai.utils.torch import argsort
  from parlai.agents.hugging_face.gpt2 import Gpt2Agent
  from projects.msc.agents.long_tga import TransformerVariantAgent
label_desc: Use image node_id 1 for calling the AbstractGeneratorRerankAgentMixin obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser