Suppose we want to define a custom function to consider different weights. Complete the code below by fitting the KNeighborsClassifier with the custom_weight. Calculate the accuracy of the test set.
The answer should contain the test set accuracy, rounded up to the third decimal.