It could be a single dimensional array (vector) of $m$ nearest points. For example, let's assume the following are the data-points ($X$) and classes ($y$):
X = np.array([[0,1,3], [1,2,4], [2,3,2], [3,4,3]])
y = np.array([0, 0, 1, 1])
and you want to show us the $k=3$ nearest neighbors to the following array:
test = np.array([[1,2,3]])
You can create a Numpy array for the as follows:
array([[1, 0, 2]])
And it means the closest neighbors in order are the second element of $X$ ([1,2,4]), then the first element of $X$ ([0,1,3]), and finally the third element of $X$ ([2,3,2]).