Suppose I have these two classes:
class Branch(): def __init__(self, id, leaves): self.id = id self.leaves = leaves class Leaf():