code: def test_source_space_exclusive_complete(src_volume_labels):
      """Test that we produce exclusive and complete labels."""
      # these two are neighbors and are quite large, so let's use them to
      # ensure no overlaps
      pytest.importorskip("nibabel")
      src, volume_labels, _ = src_volume_labels
      ii = volume_labels.index("Left-Cerebral-White-Matter")
      jj = volume_labels.index("Left-Cerebral-Cortex")
      assert src[ii]["nuse"] == 755  # 2034 with pos=5, was 2832
      assert src[jj]["nuse"] == 616  # 1520 with pos=5, was 2623
      src_full = read_source_spaces(fname_vol)
      # This implicitly checks for overlap because np.sort would preserve
      # duplicates, and it checks for completeness because the sets should match
      assert_array_equal(
          src_full[0]["vertno"],
          np.sort(np.concatenate([s["vertno"] for s in src])),
      )
      for si, s in enumerate(src):
          assert_allclose(src_full[0]["rr"], s["rr"], atol=1e-6)
      # also check single_volume=True -- should be the same result
      with pytest.warns(
          RuntimeWarning, match="Found no usable.*Left-vessel.*"
      ):
          src_single = setup_volume_source_space(
              src[0]["subject_his_id"],
              7.0,
              "aseg.mgz",
              bem=fname_bem,
              volume_label=volume_labels,
              single_volume=True,
              add_interpolator=False,
              subjects_dir=subjects_dir,
          )
      assert len(src_single) == 1
      assert "Unknown+Left-Cerebral-White-Matter+Left-" in repr(
          src_single
      )
      assert_array_equal(src_full[0]["vertno"], src_single[0]["vertno"])
  
imports: from pathlib import Path
  from shutil import copytree
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal, assert_array_less, assert_equal
  import mne
  from mne import SourceEstimate, add_source_space_distances, compute_source_morph, get_volume_labels_from_src, make_sphere_model, morph_source_spaces, pick_types, read_bem_solution, read_bem_surfaces, read_freesurfer_lut, read_source_spaces, read_trans, setup_source_space, setup_volume_source_space, write_source_spaces
  from mne._fiff.constants import FIFF
  from mne._fiff.pick import _picks_to_idx
  from mne.datasets import testing
  from mne.fixes import _get_img_fdata
  from mne.source_estimate import _get_src_type
  from mne.source_space import compute_distance_to_sensors, get_decimated_surfaces
  from mne.source_space._source_space import _compare_source_spaces
  from mne.surface import _accumulate_normals, _triangle_neighbors
  from mne.utils import _record_warnings, requires_mne, run_subprocess
label_desc: Use image node_id 17 for calling a global function with example usage: test_source_space_exclusive_complete(src_volume_labels) without return types