code: def test_seed_extraction(rng):
      """Test seed extraction."""
      data = rng.random((3, 3, 3, 5))
      img = nibabel.Nifti1Image(data, np.eye(4))
      masker = NiftiSpheresMasker([(1, 1, 1)])
      # Test the fit
      masker.fit()
      # Test the transform
      s = masker.transform(img)
      assert_array_equal(s[:, 0], data[1, 1, 1])
  
imports: import warnings
  import nibabel
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from nilearn._utils import data_gen
  from nilearn.image import get_data, new_img_like
  from nilearn.maskers import NiftiSpheresMasker
label_desc: Use image node_id 1 for calling a global function with example usage: test_seed_extraction(rng) without return types