code: def test_none_mask_img(mini_mask):
      masker = SurfaceMasker(None)
      with pytest.raises(ValueError, match="provide either"):
          masker.fit(None)
      # no mask_img but fit argument is ok
      masker.fit(mini_mask)
      # no fit argument but a mask_img is ok
      SurfaceMasker(mini_mask).fit(None)
  
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 3 for calling a global function with example usage: test_none_mask_img(mini_mask) without return types