class_docstr: Override TGA to use a different tree search decoder.
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      reranker_class = (
          cls.get_partial_only_reranker_class() or AbstractReranker
      )
      reranker_class.add_cmdline_args(parser, partial_opt=partial_opt)
      group = parser.add_argument_group("PACER Group")
      group.add_argument(
          "--pacer-n-tokens",
          type=int,
          default=10,
          help="How many tokens to re-rank and consider",
      )
      group.add_argument(
          "--pacer-frequency-ratio",
          type=float,
          default=0.05,
          help="The frequency with which to apply PACER re-ranking.",
      )
      return parser
  
imports: import random
  import torch
  import torch.nn.functional
  from typing import Optional, Any, Dict, List
  from parlai.agents.rag.retrievers import clean_vec
  from parlai.agents.transformer.transformer import TransformerGeneratorAgent
  from parlai.core.opt import Opt
  from parlai.core.params import ParlaiParser
  from parlai.core.torch_generator_agent import TreeSearch, GreedySearch, BeamSearch, DelayedBeamSearch, TopKSampling, NucleusSampling, TSType
  import parlai.utils.logging
  from parlai.utils.torch import neginf
  from projects.light_whoami.agents.rpa_rerank import RPAReranker, RPARerankAgent, LongRPARerankAgent
  from projects.light_whoami.task.utils import extract_characters
  from projects.msc.agents.long_tga import TransformerVariantAgent
  from parlai.agents.reranker.reranker import AbstractReranker
label_desc: Use image node_id 2 for calling the PacerAgentMixin obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser