<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_nodes(graph: BELGraph, node_predicates: NodePredicates) -> Set[BaseEntity]: """Get the set of all nodes that pass the predicates."""

    return set(filter_nodes(graph, node_predicates=node_predicates))