def iter_leaves(self, is_leaf_fn=None):
for n in self.traverse(strategy="<STR_LIT>", is_leaf_fn=is_leaf_fn):<EOL><INDENT>if not is_leaf_fn:<EOL><INDENT>if n.is_leaf():<EOL><INDENT>yield n<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if is_leaf_fn(n):<EOL><INDENT>yield n<EOL><DEDENT><DEDENT><DEDENT>
Returns an iterator over the leaves under this node.