def get_closest_k_points(D, k):
    return sorted(D)[:k+1] 


###########################################
Get the k closest points
dataset/ETHPy150Open bt3gl/Advanced-Machine-Learning/k-NN/kNN.py/get_closest_k_points