code: def test_reduce_data_dummyatlases():
      n_jobs = 1
      with tempfile.TemporaryDirectory() as datadir:
          for n_timeframes in ([25, 24], [25, 25]):
              # We authorize different timeframes for different sessions
              # but they should be the same across subject
              n_voxels = 10
              n_subjects = 2
              n_components = (
                  3  # number of components used for SRM model
              )
              n_sessions = len(n_timeframes)
  
              np.random.seed(0)
              paths, _, _ = generate_data(
                  n_voxels,
                  n_timeframes,
                  n_subjects,
                  n_components,
                  datadir,
              )
  
              # test atlas that reduces nothing
              atlas = np.arange(1, n_voxels + 1)
              data = reduce_data(
                  paths, atlas=atlas, n_jobs=n_jobs, low_ram=False
              )
              for i in range(n_subjects):
                  for j in range(n_sessions):
                      assert_array_almost_equal(
                          data[i, j].T, np.load(paths[i, j])
                      )
  
              # test atlas that reduces everything
              atlas = np.ones(n_voxels)
              data = reduce_data(
                  paths, atlas=atlas, n_jobs=n_jobs, low_ram=False
              )
              for i in range(n_subjects):
                  for j in range(n_sessions):
                      assert_array_almost_equal(
                          data[i, j].T.flatten(),
                          np.mean(np.load(paths[i, j]), axis=0),
                      )
  
imports: import os
  import tempfile
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from sklearn.exceptions import NotFittedError
  from brainiak.funcalign.fastsrm import FastSRM, _compute_and_save_corr_mat, _compute_and_save_subject_basis, _compute_basis_subject_online, _reduced_space_compute_shared_response, check_atlas, check_imgs, check_shared_response, create_temp_dir, fast_srm, reduce_data, safe_load
  from brainiak.funcalign.srm import DetSRM
label_desc: Use image node_id 8 for calling a global function with example usage: test_reduce_data_dummyatlases() without return types