code: def check_consistent_length(*arrays):
      """Check that all arrays have consistent first dimensions.
  
      Checks whether all objects in arrays have the same shape or length.
  
      Parameters
      ----------
      *arrays : list or tuple of input objects.
          Objects that will be checked for consistent length.
      """
  
      lengths = [_num_samples(X) for X in arrays if X is not None]
      uniques = np.unique(lengths)
      if len(uniques) > 1:
          raise ValueError(
              "Found input variables with inconsistent numbers of samples: %r"
              % [int(l) for l in lengths]
          )
  
imports: import numbers
  import operator
  import warnings
  from contextlib import suppress
  from functools import reduce, wraps
  from inspect import Parameter, isclass, signature
  import joblib
  import numpy
  import scipy.sparse
  from ..None import get_config
  from ..exceptions import DataConversionWarning, NotFittedError, PositiveSpectrumWarning
  from ..utils._array_api import _asarray_with_order, _is_numpy_namespace, get_namespace
  from ..utils.fixes import ComplexWarning
  from ._isfinite import FiniteStatus, cy_isfinite
  from .fixes import _object_dtype_isnan
label_desc: Use image node_id 11 for calling a global function with example usage: check_consistent_length() without return types