code: def test_default(tmpdir):
      infile = get_test_data(fname="anatomical.nii")
      outfile = tmpdir / "output.nii.gz"
      main([str(infile), str(outfile)])
      assert outfile.isfile()
      c = nib.load(outfile)
      assert c.shape == (256, 256, 256)
      assert c.header.get_zooms() == (1, 1, 1)
      assert nib.orientations.aff2axcodes(c.affine) == ("R", "A", "S")
  
      with pytest.raises(FileExistsError):
          main([str(infile), str(outfile)])
  
      main([str(infile), str(outfile), "--force"])
      assert outfile.isfile()
  
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 1 for calling a global function with example usage: test_default(tmpdir) without return types