def findksimilarusers(user_id, ratings, metric = C, k=k): similarities=[] indices=[] model_knn = NearestNeighbors(metric = metric, metric = \'brute\') model_knn.fit(rat