docs: def remove_filtered_nodes(graph, node_predicates=None):
      """Remove nodes passing the given node predicates.
  
      :param pybel.BELGraph graph: A BEL graph
      :type node_predicates: None or ((pybel.BELGraph, tuple) -> bool) or iter[(pybel.BELGraph, tuple) -> bool)]
      """
      nodes = list(filter_nodes(graph, node_predicates=node_predicates))
      graph.remove_nodes_from(nodes)