code: def getParser():
      "Creates and returns the argparse parser object."
      parser = argparse.ArgumentParser(description=__description__)
      parser.add_argument(
          "input", help="Source volume (usually a gradient image)."
      )
      parser.add_argument("output", help="Target volume.")
      parser.add_argument(
          "--mindist",
          type=int,
          default=2,
          help="The minimum distance between local minima in voxel units.",
      )
      parser.add_argument(
          "--mask",
          help="Optional binary mask image denoting the area over which to compute the watershed.",
      )
      parser.add_argument(
          "-v",
          dest="verbose",
          action="store_true",
          help="Display more information.",
      )
      parser.add_argument(
          "-d",
          dest="debug",
          action="store_true",
          help="Display debug information.",
      )
      parser.add_argument(
          "-f",
          dest="force",
          action="store_true",
          help="Silently override existing output images.",
      )
  
      return parser
  
file_path: medpy/bin/medpy_watershed.py
imports: import argparse
  import logging
  import os
  import numpy
  from scipy.ndimage import label
  from skimage.morphology import watershed
  from medpy.io import load, save
  from medpy.core import Logger, ArgumentError
  from medpy.filter import local_minima
label_desc: Use image node_id 3 for calling a global function with example usage: getParser() and returns: parser