code: def tree():
      
      session = AppAggregate().open_session()
      classes = session.query(AssetClass).all()
      # Get the root classes
      root = []
      for ac in classes:
          if ac.parentid is None:
              root.append(ac)
          # logger.debug(ac.parentid)
      # header
      print_row("id", "asset class", "allocation", "level")
      print(f"-------------------------------")
  
      for ac in root:
          print_item_with_children(ac, classes, 0)
docs: Display a tree of asset classes