code: def getArguments(parser):
      "Provides additional validation of the arguments collected by argparse."
      args = parser.parse_args()
      if args.order < 0 or args.order > 5:
          parser.error("The order has to be a number between 0 and 5.")
      return args
  
file_path: medpy/bin/medpy_binary_resampling.py
imports: import os
  import logging
  import argparse
  import numpy
  from scipy.ndimage import zoom
  from scipy.ndimage import distance_transform_edt, binary_erosion
  from scipy.ndimage import label
  from medpy.core import Logger
  from medpy.filter import resample, bounding_box
  from medpy.utilities import argparseu
  from medpy.io import load, save, header
label_desc: Use image node_id 5 for calling a global function with example usage: getArguments(parser) and returns: args