original_docstring: 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.
      
docstring: 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.
docstring_tokens: 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 .
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])
code_tokens: def check_consistent_length ( * arrays ) : 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 ] )
short_docstring: Check that all arrays have consistent first dimensions.
short_docstring_tokens: Check that all arrays have consistent first dimensions .
comment: """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.
      """