def METHOD_NAME(df):
    selection_expression = vaex.selections.SelectionExpression("x > 5", None, "and")
    df.set_selection(selection_expression)
    total_subset = df["x"].sum(selection=True)
    df.select("x > 5")
    total_subset_same = df["x"].sum(selection=True)
    assert total_subset == total_subset_same
    values = selection_expression.to_dict()
    df.set_selection(vaex.selections.selection_from_dict(values))
    total_subset_same2 = df["x"].sum(selection=True)
    assert total_subset == total_subset_same2
    selection_expression = vaex.selections.SelectionExpression("x > 5", None, "and")
    selection_lasso = vaex.selections.SelectionLasso("x", "y", [0, 10, 10, 0], [-1, -1, 100, 100], selection_expression, "and")
    df.set_selection(selection_lasso)
    total_2 = df.sum("x", selection=True)
    assert total_2 == total_subset