code: def test_nib_roi_unknown_axes(capsys):
      in_file = os.path.join(data_path, "minc1_4d.mnc")
      with pytest.raises(ValueError):
          main([in_file, os.devnull, "-i", ":"])
      captured = capsys.readouterr()
      assert "Could not slice image." in captured.out
  
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 9 for calling a global function with example usage: test_nib_roi_unknown_axes(capsys) without return types