code: def _check_shared_response_list_sessions(
      shared_response, n_components, input_shapes
  ):
      for j in range(len(shared_response)):
          assert_array_2axis(
              shared_response[j], "shared_response[%i]" % j
          )
          if input_shapes is not None:
              if shared_response[j].shape[1] != input_shapes[0][j][1]:
                  raise ValueError(
                      "Number of timeframes in input images during "
                      "session %i does not match the number of "
                      "timeframes during session %i "
                      "of shared_response (%i != %i)"
                      % (
                          j,
                          j,
                          shared_response[j].shape[1],
                          input_shapes[0, j, 1],
                      )
                  )
          if n_components is not None:
              if shared_response[j].shape[0] != n_components:
                  raise ValueError(
                      "Number of components in "
                      "shared_response during session %i is "
                      "different than "
                      "the number of components of the model (%i != %i)"
                      % (j, shared_response[j].shape[0], n_components)
                  )
      return shared_response
  
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 18 for calling a global function with example usage: _check_shared_response_list_sessions(shared_response, n_components, input_shapes) and returns: shared_response