code: def assert_array_2axis(array, name_array):
      """Check that input is an np array with 2 axes
  
      Parameters
      ----------
      array: np array
      name_array: str
          Name of the array
      """
  
      if not isinstance(array, np.ndarray):
          raise ValueError(
              "%s should be of type "
              "np.ndarray but is of type %s" % (name_array, type(array))
          )
  
      if len(array.shape) != 2:
          raise ValueError(
              "%s must have exactly 2 axes "
              "but has %i axes" % (name_array, len(array.shape))
          )
  
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 5 for calling a global function with example usage: assert_array_2axis(array, name_array) without return types