code: def test_mask_img_transform_keys_mismatch(
      mini_mask, mini_img, drop_img_part
  ):
      masker = SurfaceMasker(mini_mask).fit()
      with pytest.raises(ValueError, match="key"):
          masker.transform(drop_img_part(mini_img))
      # full img is ok
      masker.transform(mini_img)
  
file_path: nilearn/nilearn/experimental/surface/tests/test_maskers.py
imports: import numpy
  import pytest
  from nilearn.experimental.surface import SurfaceImage, SurfaceMasker
label_desc: Use image node_id 6 for calling a global function with example usage: test_mask_img_transform_keys_mismatch(mini_mask, mini_img, drop_img_part) without return types