I have a tree based on the picture. I would like to write a function create a nested list according to the picture using python. The following is what I have tried, but it i