code: def test_consistency_paths_data():
      with tempfile.TemporaryDirectory() as datadir:
          # In this function we test that input format
          # does not change the results
  
          n_voxels = 8
          n_timeframes = [4, 5, 6]
          n_subjects = 2
          n_components = 3  # number of components used for SRM model
  
          np.random.seed(0)
          paths, W, S = generate_data(
              n_voxels,
              n_timeframes,
              n_subjects,
              n_components,
              datadir,
              input_format="array",
          )
  
          print()
          print("shape", paths.shape)
  
          fastsrm = FastSRM(
              n_components=3,
              atlas=None,
              verbose=True,
              seed=0,
              n_jobs=1,
              n_iter=10,
          )
  
          fastsrm.fit(paths)
          b0 = fastsrm.basis_list[0]
  
          fastsrm.fit(load_and_concat(paths))
          b1 = fastsrm.basis_list[0]
  
          assert_array_almost_equal(b0, b1)
  
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 19 for calling a global function with example usage: test_consistency_paths_data() without return types