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)
  
      # load input
      data_input, header_input = load(args.image)
  
      # change pixel spacing
      logger.info(
          "Setting pixel spacing along {} to {}...".format(
              data_input.shape, args.spacing
          )
      )
      header.set_pixel_spacing(header_input, args.spacing)
  
      # save file
      save(data_input.copy(), args.image, header_input, True)
  
      logger.info("Successfully terminated.")
  
imports: import argparse
  import logging
  from medpy.core import Logger
  from medpy.io import load, header, save
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types