def METHOD_NAME(node, value, complete_list, totals):
	if not totals.get(node["account"]):
		totals[node["account"]] = 0
	totals[node["account"]] += value
	parent = node["parent_account"]
	if not parent == "":
		return METHOD_NAME(
			next(item for item in complete_list if item["account"] == parent), value, complete_list, totals
		)