code: def parse_args():
      import argparse
  
      parser = argparse.ArgumentParser(
          description="docTR evaluation script for text recognition (TensorFlow)",
          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(
          "-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_tensorflow.py
imports: import os
  import multiprocessing
  import time
  import tensorflow
  from tensorflow.keras import mixed_precision
  from tqdm import tqdm
  from doctr import datasets
  from doctr import transforms
  from doctr.datasets import VOCABS, DataLoader
  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