code: def main():
      args = getArguments(getParser())
  
      # prepare logger
      logger = Logger.getInstance()
      if args.debug:
          logger.setLevel(logging.DEBUG)
      elif args.verbose:
          logger.setLevel(logging.INFO)
  
      img, hdr = load(args.input)
  
      if args.spacing:
          print("{}".format(hdr.get_voxel_spacing()))
          return 0
  
      logger.debug("Resulting shape is {}.".format(img.shape))
  
      # save resulting volume
      save(img, args.output, hdr, args.force)
  
      logger.info("Successfully terminated.")
  
imports: import argparse
  import logging
  from medpy.core import Logger
  from medpy.io import load, save
label_desc: Use image node_id 1 for calling a global function with example usage: main() and returns: int