def METHOD_NAME(df, selection):
    if selection is None:
        assert df.ml.metrics.accuracy_score(df.x, df.y) == metrics.accuracy_score(df.x.values, df.y.values)
    else:
        result_vaex = df.ml.metrics.accuracy_score(df.x, df.y, selection=selection)
        for i, sel in enumerate(selection):
            result_sklearn = metrics.accuracy_score(df.filter(sel).x.values, df.filter(sel).y.values)
            assert result_vaex[i] == result_sklearn