code: def test_slice2volume_exception(index, axis):
      with pytest.raises(ValueError):
          slice2volume(index, axis)
  
file_path: nibabel/nibabel/tests/test_spaces.py
imports: import numpy
  import numpy.linalg
  import pytest
  from numpy.testing import assert_almost_equal
  from ..affines import apply_affine, from_matvec
  from ..eulerangles import euler2mat
  from ..nifti1 import Nifti1Image
  from ..spaces import slice2volume, vox2out_vox
label_desc: Use image node_id 5 for calling a global function with example usage: test_slice2volume_exception(index, axis) without return types