code: def test_find_parcellation_cut_coords_hemispheres(affine_mni):
      # Create a mock labels_img object
      data = np.zeros((10, 10, 10))
      data[2:5, 2:5, 2:5] = 1  # left hemisphere
      labels_img = nibabel.Nifti1Image(data, affine_mni)
  
      # Test when label_hemisphere is "left"
      coords, labels = find_parcellation_cut_coords(
          labels_img, return_label_names=True, label_hemisphere="left"
      )
      assert len(coords) == 1
      assert labels == [1]
  
      # Test when label_hemisphere is "right"
      coords, labels = find_parcellation_cut_coords(
          labels_img, return_label_names=True, label_hemisphere="right"
      )
      assert len(coords) == 1
      assert labels == [1]
  
file_path: nilearn/nilearn/plotting/tests/test_find_cuts.py
imports: import nibabel
  import numpy
  import pytest
  from nilearn.masking import compute_epi_mask
  from nilearn.plotting.find_cuts import _transform_cut_coords, find_cut_slices, find_parcellation_cut_coords, find_probabilistic_atlas_cut_coords, find_xyz_cut_coords
label_desc: Use image node_id 10 for calling a global function with example usage: test_find_parcellation_cut_coords_hemispheres(affine_mni) without return types