code: def test_lossless_slice_unknown_axes():
      img = nb.load(os.path.join(data_path, "minc1_4d.mnc"))
      with pytest.raises(ValueError):
          lossless_slice(img, (slice(None), slice(None), slice(None)))
  
file_path: nibabel/nibabel/cmdline/tests/test_roi.py
imports: import os
  import unittest
  from unittest import mock
  import numpy
  import pytest
  import nibabel
  from nibabel.cmdline.roi import lossless_slice, main, parse_slice
  from nibabel.testing import data_path
label_desc: Use image node_id 3 for calling a global function with example usage: test_lossless_slice_unknown_axes() without return types