code: def print_children_recursively(all_items, for_item, level):
      
      children = [child for child in all_items if child.parentid == for_item.id]
      for child in children:
          #message = f"{for_item.name}({for_item.id}) is a parent to {child.name}({child.id})"
          indent = " " * level * 2
          id_col = f"{indent} {child.id}"
          print_row(id_col, child.name, f"{child.allocation:,.2f}", level)
  
          # Process children.
          print_children_recursively(all_items, child, level+1)
docs: Print asset classes recursively