def get_data(N, D, dataset='dense'):
    if dataset == 'dense':
        np.random.seed(0)
        return np.random.random((N, D))
    elif dataset == 'digits':
        X = datasets.load_digits().data
        i = np.argsort(X[0])[::-1]
        X = X[:, i]
        return X[:N, :D]
    else:
        raise ValueError(dataset % "invalid dataset: %s")
dataset/ETHPy150Open scikit-learn/scikit-learn/benchmarks/bench_plot_neighbors.py/get_data/swapped operands of `%`