code: def getParser():
      "Creates and returns the argparse parser object."
      parser = argparse.ArgumentParser(
          description=__description__,
          formatter_class=argparse.RawDescriptionHelpFormatter,
      )
      parser.add_argument(
          "b0image",
          help="the diffusion weighted image required with b=0",
      )
      parser.add_argument(
          "bximage",
          help="the diffusion weighted image required with b=x",
      )
      parser.add_argument(
          "b",
          type=int,
          help="the b-value used to acquire the bx-image (i.e. x)",
      )
      parser.add_argument(
          "output",
          help="the computed apparent diffusion coefficient image",
      )
  
      parser.add_argument(
          "-t",
          "--threshold",
          type=int,
          dest="threshold",
          help="set a fixed threshold for the input images to mask the computation",
      )
  
      parser.add_argument(
          "-v",
          "--verbose",
          dest="verbose",
          action="store_true",
          help="verbose output",
      )
      parser.add_argument(
          "-d",
          dest="debug",
          action="store_true",
          help="Display debug information.",
      )
      parser.add_argument(
          "-f",
          "--force",
          dest="force",
          action="store_true",
          help="overwrite existing files",
      )
      return parser
  
file_path: medpy/bin/medpy_apparent_diffusion_coefficient.py
imports: import argparse
  import logging
  import numpy
  from scipy.ndimage import binary_fill_holes, binary_dilation, binary_erosion
  from medpy.core import Logger
  from medpy.io import load, save, header
  from medpy.filter import otsu
  from medpy.core.exceptions import ArgumentError
  from medpy.filter.binary import largest_connected_component
label_desc: Use image node_id 3 for calling a global function with example usage: getParser() and returns: parser