code: def test_mask_reducer_reduced_reproducible(
      data_for_mask_and_reduce, masker
  ):
      data1 = _mask_and_reduce(
          masker,
          data_for_mask_and_reduce[0],
          n_components=3,
          random_state=0,
      )
      data2 = _mask_and_reduce(
          masker,
          [data_for_mask_and_reduce[0]] * 2,
          n_components=3,
          random_state=0,
      )
  
      assert_array_almost_equal(np.tile(data1, (2, 1)), data2)
  
file_path: nilearn/nilearn/decomposition/tests/test_base.py
imports: import numpy
  import pytest
  from nibabel import Nifti1Image
  from numpy.testing import assert_array_almost_equal
  from scipy import linalg
  from nilearn.conftest import _affine_eye, _img_3d_ones, _rng
  from nilearn.decomposition._base import _fast_svd, _mask_and_reduce
  from nilearn.maskers import MultiNiftiMasker
label_desc: Use image node_id 7 for calling a global function with example usage: test_mask_reducer_reduced_reproducible(data_for_mask_and_reduce, masker) without return types