code: def parse_args():
      argparser = argparse.ArgumentParser(
          "Runs googletest unit-tests with compute-sanitizer enabled"
      )
      argparser.add_argument(
          "-exe",
          type=str,
          default=None,
          help="The googletest executable to be run",
      )
      argparser.add_argument(
          "-pwd",
          type=str,
          default=None,
          help="Current directory for running the exe",
      )
      argparser.add_argument(
          "-tool",
          type=str,
          default="memcheck",
          choices=["memcheck", "initcheck", "racecheck", "synccheck"],
          help="memcheck tool to be used",
      )
      argparser.add_argument(
          "-v",
          dest="verbose",
          action="store_true",
          help="Print verbose messages",
      )
      args = argparser.parse_args()
      if args.exe is None:
          raise Exception("'-exe' is a mandatory option!")
      return args
  
file_path: cuml/cpp/scripts/cuda-memcheck.py
imports: from __future__ import print_function
  import os
  import subprocess
  import argparse
  import time
  import re
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args