code: def getParser():
      "Creates and returns the argparse parser object."
      parser = argparse.ArgumentParser(
          description=__description__,
          formatter_class=RawTextHelpFormatter,
      )
      parser.add_argument("output", help="Target volume.")
      parser.add_argument(
          "inputs",
          nargs="+",
          help="Source volumes of same shape and dtype.",
      )
      parser.add_argument(
          "-s",
          dest="spacing",
          type=float,
          default=1,
          help="The voxel spacing of the newly created dimension. Default is 1.",
      )
      parser.add_argument(
          "-p",
          dest="position",
          type=int,
          default=0,
          help="The position where to put the new dimension starting from 0. Standard behaviour is to place it in the first position.",
      )
      parser.add_argument(
          "-i",
          dest="ignore",
          action="store_true",
          help="Ignore if the images datatypes differ.",
      )
      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_join_xd_to_xplus1d.py
imports: import argparse
  from argparse import RawTextHelpFormatter
  import logging
  import scipy
  from medpy.io import load, save, header
  from medpy.core import Logger
  from medpy.core.exceptions import ArgumentError
label_desc: Use image node_id 3 for calling a global function with example usage: getParser() and returns: parser