code: 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.")
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import logging
  from array import array
  import turicreate
  from turicreate.toolkits._model import Model
  from turicreate.data_structures.sframe import SFrame
  import turicreate.toolkits._internal_utils
  from turicreate.toolkits._private_utils import _validate_row_label
  from turicreate.toolkits._private_utils import _summarize_accessible_fields
  from turicreate.toolkits._main import ToolkitError
  from turicreate._cython.cy_server import QuietProgress
label_desc: Use image node_id 1 for calling a global function with example usage: _validate_dataset(dataset) without return types