class_docstr: Test creation of the Kmeans model with various parameter and dataset
  configurations.
docstr: Make sure the `label` parameter works correctly.
code: def test_label_param(self):
      """
      Make sure the `label` parameter works correctly.
      """
      ## No label leads to integers and 'row_id'
      m = tc.kmeans.create(self.sf, num_clusters=self.K, verbose=False)
      self.assertItemsEqual(
          m.cluster_id.column_names(),
          ["row_id", "cluster_id", "distance"],
      )
      self.assertEqual(m.cluster_id["row_id"].dtype, int)
  
      ## Specified string labels are correctly passed through to the cluster
      #  ID SFrame.
      label_name = "row_labels"
      sf = self.sf.add_row_number(label_name)
      sf[label_name] = sf[label_name].astype(str) + "a"
  
      m = tc.kmeans.create(
          sf, label=label_name, num_clusters=self.K, verbose=False
      )
      self.assertItemsEqual(
          m.cluster_id.column_names(),
          [label_name, "cluster_id", "distance"],
      )
      self.assertEqual(m.cluster_id[label_name].dtype, str)
  
      ## Row label 'row_id' that's *not* int row numbers still works ok
      label_name = "row_id"
      sf = self.sf.add_row_number(label_name)
      sf[label_name] = sf[label_name].astype(str) + "a"
  
      m = tc.kmeans.create(
          sf, label=label_name, num_clusters=self.K, verbose=False
      )
      self.assertItemsEqual(
          m.cluster_id.column_names(),
          [label_name, "cluster_id", "distance"],
      )
      self.assertEqual(m.cluster_id[label_name].dtype, str)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import unittest
  import copy
  import numpy
  from numpy.testing import assert_allclose
  import turicreate
  from .None import util
  from turicreate.util import _assert_sframe_equal
  from turicreate.toolkits._main import ToolkitError
  import sys
label_desc: Use image node_id 7 for calling the KmeansCreateTest obj's underlying member method code with example usage: obj.test_label_param() without return types