docs: def filter_nodes(graph: BELGraph, node_predicates: NodePredicates) -> Iterable[BaseEntity]:
      """Apply a set of predicates to the nodes iterator of a BEL graph."""
      concatenated_predicate = concatenate_node_predicates(node_predicates=node_predicates)
      for node in graph:
          if concatenated_predicate(graph, node):
              yield node