docs: def _remove_pathologies_oop(graph):
      """Remove pathology nodes from the graph."""
      rv = graph.copy()
      victims = [
          node
          for node in rv
          if node[FUNCTION] == PATHOLOGY
      ]
      rv.remove_nodes_from(victims)
      return rv