code: def test_transform_inverse_transform(
      shape, make_mini_img, assert_img_equal
  ):
      img = make_mini_img(shape)
      masker = SurfaceMasker().fit(img)
      masked_img = masker.transform(img)
      assert np.array_equal(
          masked_img.ravel()[:9], [1, 2, 3, 4, 10, 20, 30, 40, 50]
      )
      assert masked_img.shape == shape + (img.shape[-1],)
      unmasked_img = masker.inverse_transform(masked_img)
      assert_img_equal(img, unmasked_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 7 for calling a global function with example usage: test_transform_inverse_transform(shape, make_mini_img, assert_img_equal) without return types