from sklearn.neighbors import KNeighborsClassifier

# Fit a KNN classifier with uniform weights
knn_classifier = KNeighborsClassifier(n_neighbors=7, weights='uniform')
knn_classifier.fit(X, y)

# Predict the class of the new sample
>>> knn_classifier.predict(new_sample)
array([0])