code: def parse_args():
      import argparse
  
      parser = argparse.ArgumentParser(
          description="docTR evaluation script for text recognition (PyTorch)",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
      )
  
      parser.add_argument(
          "arch", type=str, help="text-recognition model to evaluate"
      )
      parser.add_argument(
          "--vocab",
          type=str,
          default="french",
          help="Vocab to be used for evaluation",
      )
      parser.add_argument(
          "--dataset",
          type=str,
          default="FUNSD",
          help="Dataset to evaluate on",
      )
      parser.add_argument(
          "--device", default=None, type=int, help="device"
      )
      parser.add_argument(
          "-b",
          "--batch_size",
          type=int,
          default=1,
          help="batch size for evaluation",
      )
      parser.add_argument(
          "--input_size",
          type=int,
          default=32,
          help="input size H for the model, W = 4*H",
      )
      parser.add_argument(
          "-j",
          "--workers",
          type=int,
          default=None,
          help="number of workers used for dataloading",
      )
      parser.add_argument(
          "--only_regular",
          dest="regular",
          action="store_true",
          help="test set contains only regular text",
      )
      parser.add_argument(
          "--resume",
          type=str,
          default=None,
          help="Checkpoint to resume",
      )
      parser.add_argument(
          "--amp",
          dest="amp",
          help="Use Automatic Mixed Precision",
          action="store_true",
      )
      args = parser.parse_args()
  
      return args
  
file_path: doctr/references/recognition/evaluate_pytorch.py
imports: import os
  import multiprocessing
  import time
  import torch
  from torch.utils.data import DataLoader, SequentialSampler
  from torchvision.transforms import Normalize
  from tqdm import tqdm
  from doctr import datasets
  from doctr import transforms
  from doctr.datasets import VOCABS
  from doctr.models import recognition
  from doctr.utils.metrics import TextMatch
label_desc: Use image node_id 3 for calling a global function with example usage: parse_args() and returns: args