code: def _check_imgs_list(imgs):
      """
      Checks that imgs is a non empty list of elements of the same type
  
      Parameters
      ----------
  
      imgs : list
      """
      # Check the list is non empty
      assert_non_empty_list(imgs, "imgs")
  
      # Check that all input have same type
      for i in range(len(imgs)):
          if not isinstance(imgs[i], type(imgs[0])):
              raise ValueError(
                  "imgs[%i] has type %s whereas "
                  "imgs[%i] has type %s. "
                  "This is inconsistent."
                  % (i, type(imgs[i]), 0, type(imgs[0]))
              )
  
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 7 for calling a global function with example usage: _check_imgs_list(imgs) without return types