code: def getParser():
      "Creates and returns the argparse parser object."
      parser = argparse.ArgumentParser(description=__description__)
      parser.add_argument("input", help="the input image")
      parser.add_argument("output", help="the output image")
      parser.add_argument(
          "spacing",
          type=argparseu.sequenceOfFloatsGt,
          help="the desired voxel spacing in colon-separated values, e.g. 1.2,1.2,5.0",
      )
      parser.add_argument(
          "-o",
          "--order",
          type=int,
          default=2,
          dest="order",
          help="the bspline order, default is 2;  means nearest neighbours; see also medpy_binary_resampling.py",
      )
  
      # group = parser.add_mutually_exclusive_group(required=False)
      # group.add_argument('--binary', action='store_true', dest='binary', help='enforce binary output image')
      # group.add_argument('--float', action='store_true', dest='float', help='enforce floating point output image')
  
      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_resample.py
imports: import os
  import argparse
  import logging
  import scipy.ndimage
  from medpy.core import Logger
  from medpy.io import load, save, header
  from medpy.utilities import argparseu
label_desc: Use image node_id 3 for calling a global function with example usage: getParser() and returns: parser