code: def parse_args():
      parser = argparse.ArgumentParser(
          description="DocTR text detection",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
      )
      parser.add_argument(
          "path",
          type=str,
          help="Path to process: PDF, image, directory",
      )
      parser.add_argument(
          "--detection",
          type=str,
          default="db_resnet50",
          help="Text detection model to use for analysis",
      )
      parser.add_argument(
          "--bin-thresh",
          type=float,
          default=0.3,
          help="Binarization threshold for the detection model.",
      )
      parser.add_argument(
          "--recognition",
          type=str,
          default="crnn_vgg16_bn",
          help="Text recognition model to use for analysis",
      )
      parser.add_argument(
          "-f",
          "--format",
          choices=["txt", "json", "xml"],
          default="txt",
          help="Output format",
      )
      return parser.parse_args()
  
file_path: doctr/scripts/detect_text.py
imports: import argparse
  import json
  import os
  from pathlib import Path
  from tqdm import tqdm
  from doctr.file_utils import is_tf_available
  from doctr.io import DocumentFile
  from doctr.models import detection, ocr_predictor
label_desc: Use image node_id 3 for calling a global function with example usage: parse_args() and returns: parser