code: def _check_inputs(A, B):
      if not isinstance(A, np.ndarray) or not isinstance(B, np.ndarray):
          raise ValueError("Inputs must be ndarrays")
      if not A.shape == B.shape:
          raise ValueError("Inputs must have equal dimensions")
      if A.ndim < 2:
          raise ValueError("Inputs must be at least a 2D ndarray")
  
imports: import numpy
  from scipy.linalg import eigvalsh, solve
  from sklearn.metrics import euclidean_distances
  from .base import logm, sqrtm, invsqrtm
label_desc: Use image node_id 1 for calling a global function with example usage: _check_inputs(A, B) without return types