def METHOD_NAME(train_data, train_labels, predict_data, nClasses):
    # Create an algorithm object and call compute
    train_algo = d4p.bf_knn_classification_training(nClasses=nClasses, fptype="float")
    train_result = train_algo.METHOD_NAME(train_data, train_labels)
    # Create an algorithm object and call compute
    predict_algo = d4p.bf_knn_classification_prediction(nClasses=nClasses, fptype="float")
    predict_result = predict_algo.METHOD_NAME(predict_data, train_result.model)
    return predict_result