Write a Python generator function called tree leaves that performs a depth-first traversal of a tree…
Write a Python generator function called tree leaves that performs a depth-first traversal of a tree…: a task in repo2rlenv-r2e (Harbor dataset). Function signature: def tree leaves(root, follow=is seqcont, children=iter):
The task
Function signature: ``` def tree_leaves(root, follow=is_seqcont, children=iter): ```
Part of FineEnvs/repo2rlenv-r2e.