code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Runner for MONAI unittests with timing."
      )
      parser.add_argument(
          "-s",
          action="store",
          dest="path",
          default=".",
          help="Directory to start discovery (default: '%(default)s')",
      )
      parser.add_argument(
          "-p",
          action="store",
          dest="pattern",
          default="test_*.py",
          help="Pattern to match tests (default: '%(default)s')",
      )
      parser.add_argument(
          "-t",
          "--thresh",
          dest="thresh",
          default=10.0,
          type=float,
          help="Display tests longer than given threshold (default: %(default)d)",
      )
      parser.add_argument(
          "-v",
          "--verbosity",
          action="store",
          dest="verbosity",
          type=int,
          default=1,
          help="Verbosity level (default: %(default)d)",
      )
      parser.add_argument(
          "-q",
          "--quick",
          action="store_true",
          dest="quick",
          default=False,
          help="Only do quick tests",
      )
      parser.add_argument(
          "-f",
          "--failfast",
          action="store_true",
          dest="failfast",
          default=False,
          help="Stop testing on first failure",
      )
      args = parser.parse_args()
      print(f"Running tests in folder: '{args.path}'")
      if args.pattern:
          print(f"With file pattern: '{args.pattern}'")
  
      return args
  
file_path: MONAI/tests/runner.py
imports: from __future__ import annotations
  import argparse
  import glob
  import inspect
  import os
  import re
  import sys
  import time
  import unittest
  from monai.utils import PerfContext
label_desc: Use image node_id 2 for calling a global function with example usage: parse_args() and returns: args