code: def main(args=None):
      """Main program function."""
      parser = _get_parser()
      opts = parser.parse_args(args)
      from_img = load(opts.infile)
  
      if not opts.force and Path(opts.outfile).exists():
          raise FileExistsError(f"Output file exists: {opts.outfile}")
  
      out_img = conform(
          from_img=from_img,
          out_shape=opts.out_shape,
          voxel_size=opts.voxel_size,
          order=3,
          cval=0.0,
          orientation=opts.orientation,
      )
  
      save(out_img, opts.outfile)
  
imports: import argparse
  from pathlib import Path
  from nibabel import __version__
  from nibabel.loadsave import load, save
  from nibabel.processing import conform
label_desc: Use image node_id 2 for calling a global function with example usage: main(args) without return types