ENH node iterator for searchable trees

I need to collect tree nodes that have certain properties and process them.
SearchableTree.topdown() seems too specific so I wrote an iterator over tree nodes.
I have not seen this functionality elsewhere (but I might be wrong).