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 warnings
  import numbers
  import numpy
  import scipy.sparse
  from ..None import six
  from ...utils.exceptions import NotFittedError, NonBLASDotWarning, DataConversionWarning
label_desc: Use image node_id 7 for calling a global function with example usage: check_consistent_length() without return types