code: def check_lengths(*arrays):
      
      lengths = [len(array) for array in arrays]
      if len(np.unique(lengths)) > 1:
          raise ValueError('Inconsistent data lengths: {}'.format(lengths))
docs: tool to ensure input and output data have the same number of samples
  
      Parameters
      ----------
      *arrays : iterable of arrays to be checked
  
      Returns
      -------
      None