code: def test_mask_reducer_multiple_image(
      data_for_mask_and_reduce,
      masker,
      n_components,
      reduction_ratio,
      expected_shape_0,
      shape_3d_default,
  ):
      """Mask and reduce 4D images with several values of input arguments."""
      data = _mask_and_reduce(
          masker=masker,
          imgs=data_for_mask_and_reduce,
          n_components=n_components,
          reduction_ratio=reduction_ratio,
      )
  
      expected_shape = (expected_shape_0, np.prod(shape_3d_default))
  
      assert data.shape == expected_shape
  
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 4 for calling a global function with example usage: test_mask_reducer_multiple_image(data_for_mask_and_reduce, masker, n_components, reduction_ratio, expected_shape_0, shape_3d_default) without return types