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)
  
      # check if output image exists
      if not args.force and os.path.exists(args.output):
          logger.warning(
              "The output image {} already exists. Exiting.".format(
                  args.output
              )
          )
          exit(-1)
  
      # load input data
      input_data, input_header = load(args.input)
  
      # if normal mode, perform the zoom
      logger.info("Performing normal zoom...")
      output_data, output_header = zoom(
          input_data, args.enhancement, args.dimension, hdr=input_header
      )
  
      # saving results
      save(output_data, args.output, output_header, args.force)
  
file_path: medpy/bin/medpy_zoom_image.py
imports: import argparse
  import logging
  import os
  from scipy.ndimage import interpolation
  from medpy.core import Logger
  from medpy.io import load, save, header
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types