<human>:  Write me a Python function to get the index of a tree item.
<bot>:

# Enter the item
item = 1

# Calling the function
print((get_index(tree, item)))

#Example Output
# 0

#Remember to inspect code for bugs.