def _filter_nodes(superclass, all_nodes=_all_nodes):
node_names = (node.__name__ for node in all_nodes<EOL>if issubclass(node, superclass))<EOL>return frozenset(node_names)<EOL>
Filter out AST nodes that are subclasses of ``superclass``.