import numpy as np import matplotlib.pyplot as plt from sklearn.neighbors import NearestNeighbors # Input data X = np.array([[1, 1], [1, 3], [2, 2], [2.5, 5], [3, 1], [4, 2], [2, 3.5], [3, 3], [3.5, 4]]) # Number of neighbors we want to find num_neighbors = 3 # Input point in