class_docstr: The TextAttack model benchmarking module:
  
  A command line parser to evaluatate a model from user
  specifications.
class_docstr_tok: ["The","TextAttack","model","benchmarking","module",":","A","command","line","parser","to","evaluatate","a","model","from","user","specifications","."]
code: def register_subcommand(main_parser: ArgumentParser):
      parser = main_parser.add_parser(
          "eval",
          help="evaluate a model with TextAttack",
          formatter_class=ArgumentDefaultsHelpFormatter,
      )
  
      parser = ModelArgs._add_parser_args(parser)
      parser = DatasetArgs._add_parser_args(parser)
  
      parser.add_argument("--random-seed", default=765, type=int)
      parser.add_argument(
          "--batch-size",
          type=int,
          default=32,
          help="The batch size for evaluating the model.",
      )
      parser.add_argument(
          "--num-examples",
          "-n",
          type=int,
          required=False,
          default=5,
          help="The number of examples to process, -1 for entire dataset",
      )
      parser.add_argument(
          "--num-examples-offset",
          "-o",
          type=int,
          required=False,
          default=0,
          help="The offset to start at in the dataset.",
      )
  
      parser.set_defaults(func=EvalModelCommand())
  
file_path: TextAttack/textattack/commands/eval_model_command.py
imports: from argparse import ArgumentDefaultsHelpFormatter, ArgumentParser
  from dataclasses import dataclass
  import scipy
  import torch
  import textattack
  from textattack import DatasetArgs, ModelArgs
  from textattack.commands import TextAttackCommand
  from textattack.model_args import HUGGINGFACE_MODELS, TEXTATTACK_MODELS
label_desc: Use image node_id 4 for calling the EvalModelCommand obj's underlying member method code with example usage: obj.register_subcommand(main_parser) without return types