code: def test_nondefault(tmpdir):
      infile = get_test_data(fname="anatomical.nii")
      outfile = tmpdir / "output.nii.gz"
      out_shape = (100, 100, 150)
      voxel_size = (1, 2, 4)
      orientation = "LAS"
      args = (
          f"{infile} {outfile} --out-shape {' '.join(map(str, out_shape))} "
          f"--voxel-size {' '.join(map(str, voxel_size))} --orientation {orientation}"
      )
      main(args.split())
      assert outfile.isfile()
      c = nib.load(outfile)
      assert c.shape == out_shape
      assert c.header.get_zooms() == voxel_size
      assert nib.orientations.aff2axcodes(c.affine) == tuple(
          orientation
      )
  
file_path: nibabel/nibabel/cmdline/tests/test_conform.py
imports: import unittest
  import pytest
  import nibabel
  from nibabel.cmdline.conform import main
  from nibabel.optpkg import optional_package
  from nibabel.testing import get_test_data
label_desc: Use image node_id 2 for calling a global function with example usage: test_nondefault(tmpdir) without return types