code: def _validate_dataset(dataset):
      
      if not (isinstance(dataset, _SFrame)):
          raise TypeError("Input 'dataset' must be an SFrame.")
  
      if dataset.num_rows() == 0 or dataset.num_columns() == 0:
          raise ValueError("Input 'dataset' has no data.")
docs: Validate the main Kmeans dataset.
  
      Parameters
      ----------
      dataset: SFrame
          Input dataset.