code: def _compute_basis_subject_online(sessions, shared_response_list):
      """Computes subject's basis with shared response fixed
  
      Parameters
      ----------
  
      sessions : array of str
          Element i of the array is a path to the data
          collected during session i.
          Data are loaded with numpy.load and expected shape is
           [n_timeframes, n_voxels]
          n_timeframes and n_voxels are assumed to be the same across subjects
          n_timeframes can vary across sessions
          Each voxel's timecourse is assumed to have mean 0 and variance 1
  
      shared_response_list : list of array, element i has
      shape=[n_timeframes, n_components]
          shared response, element i is the shared response during session i
  
      Returns
      -------
  
      basis: array, shape=[n_components, n_voxels]
          basis
      """
  
      basis_i = None
      i = 0
      for session in sessions:
          data = safe_load(session).T
          if basis_i is None:
              basis_i = shared_response_list[i].T.dot(data)
          else:
              basis_i += shared_response_list[i].T.dot(data)
          i += 1
          del data
      return _compute_subject_basis(basis_i)
  
imports: import hashlib
  import logging
  import os
  import numpy
  import scipy
  from joblib import Parallel, delayed
  from brainiak.funcalign.srm import DetSRM
  from sklearn.base import BaseEstimator, TransformerMixin
  from sklearn.exceptions import NotFittedError
  import uuid
label_desc: Use image node_id 31 for calling a global function with example usage: _compute_basis_subject_online(sessions, shared_response_list) and returns: _compute_subject_basis