code: def load_and_concat(paths):
      """
      Take list of path and yields input data for ProbSRM
      Parameters
      ----------
      paths
      Returns
      -------
      X
      """
      X = []
      for i in range(len(paths)):
          X_i = np.concatenate(
              [np.load(paths[i, j]) for j in range(len(paths[i]))],
              axis=1,
          )
          X.append(X_i)
      return X
  
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 18 for calling a global function with example usage: load_and_concat(paths) and returns: X