Validate the main Kmeans dataset.

    Parameters
    ----------
    dataset: SFrame
        Input dataset.

def _validate_dataset(dataset):
    """
    Validate the main Kmeans dataset.

    Parameters
    ----------
    dataset: SFrame
        Input 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.")