code: def test_data_shape_inconsistent(make_mini_img):
      img = make_mini_img((7,))
      bad_data = {
          "left_hemisphere": img.data["left_hemisphere"],
          "right_hemisphere": img.data["right_hemisphere"][:4],
      }
      with pytest.raises(ValueError, match="incompatible shapes"):
          SurfaceImage(img.mesh, bad_data)
  
file_path: nilearn/nilearn/experimental/surface/tests/test_surface_image.py
imports: import numpy
  import pytest
  from nilearn.experimental.surface import FileMesh, InMemoryMesh, SurfaceImage
label_desc: Use image node_id 4 for calling a global function with example usage: test_data_shape_inconsistent(make_mini_img) without return types