Accept a function for the `nameattr` parameter in the `print_tree` function. I'd be happy to make a pull request!
Accept a function for the
nameattrparameter in theprint_treefunction. I'd be happy to make a pull request!