code: def _check_shared_response_list_of_list(
      shared_response, n_components, input_shapes
  ):
      # Check that shared_response is indeed a list of list of arrays
      n_subjects = len(shared_response)
      n_sessions = None
      for i in range(len(shared_response)):
          if not isinstance(shared_response[i], list):
              raise ValueError(
                  "shared_response[0] is a list but "
                  "shared_response[%i] is not a list "
                  "this is incompatible." % i
              )
          assert_non_empty_list(
              shared_response[i], "shared_response[%i]" % i
          )
          if n_sessions is None:
              n_sessions = len(shared_response[i])
          elif n_sessions != len(shared_response[i]):
              raise ValueError(
                  "shared_response[%i] has len %i whereas "
                  "shared_response[0] has len %i. They should "
                  "have same length"
                  % (
                      i,
                      len(shared_response[i]),
                      len(shared_response[0]),
                  )
              )
          for j in range(len(shared_response[i])):
              assert_array_2axis(
                  shared_response[i][j],
                  "shared_response[%i][%i]" % (i, j),
              )
  
      return _check_shared_response_list_sessions(
          [
              np.mean(
                  [shared_response[i][j] for i in range(n_subjects)],
                  axis=0,
              )
              for j in range(n_sessions)
          ],
          n_components,
          input_shapes,
      )
  
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 17 for calling a global function with example usage: _check_shared_response_list_of_list(shared_response, n_components, input_shapes) and returns: _check_shared_response_list_sessions