This is a Python k-NN (k-nearest neighbors algorithm) sample