Is there a way to do this? I have tried writing a function to do this but I\'m stuck and not sure how to implement it recursively.
def list(node) -> List[i