<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def filter(table, predicates):
 """ Select rows from table based on boolean expressions Parameters predicates : boolean array expressions, or list thereof Returns ------- filtered_expr : TableExpr """

    resolved_predicates = _resolve_predicates(table, predicates)
    return _L.apply_filter(table, resolved_predicates)