code: def _compute_and_save_corr_mat(img, shared_response, temp_dir):
      """computes correlation matrix and stores it
  
      Parameters
      ----------
      img : str
          path to data.
          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 : array, shape=[n_timeframes, n_components]
          shared response
      """
      data = safe_load(img).T
      name = safe_encode(img)
      path = os.path.join(temp_dir, "corr_mat_" + name)
      np.save(path, shared_response.T.dot(data))
  
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 26 for calling a global function with example usage: _compute_and_save_corr_mat(img, shared_response, temp_dir) without return types