tree:

parent(tree)

If the tree has a parent property, this returns the value of that property.