class_docstr: Example subclass of TorchRankerAgent.
  
  This particular implementation is a simple bag-of-words model, which demonstrates
  the minimum implementation requirements to make a new ranking model.
docstr: Add CLI args.
docstr_tok: ["Add","CLI","args","."]
code: def add_cmdline_args(
      cls, parser: ParlaiParser, partial_opt: Optional[Opt] = None
  ) -> ParlaiParser:
      """
      Add CLI args.
      """
      super().add_cmdline_args(parser, partial_opt=partial_opt)
      arg_group = parser.add_argument_group(
          "ExampleBagOfWordsModel Arguments"
      )
      arg_group.add_argument("--hidden-dim", type=int, default=512)
      return parser
  
file_path: ParlAI/parlai/agents/examples/tra.py
imports: from typing import Optional
  from parlai.core.params import ParlaiParser
  from parlai.core.opt import Opt
  from parlai.core.torch_ranker_agent import TorchRankerAgent
  import torch
  from torch import nn
label_desc: Use image node_id 1 for calling the TraAgent obj's underlying member method code with example usage: obj.add_cmdline_args(cls, parser, partial_opt) and returns: parser