k-mean without label
K-means does not use labels.

The example that you looked at uses labels to compare the clusters to the labels. That part obviously requires labels; but that is not part of k-means.