def flatten_list_abundance(node: ListAbundance) -> ListAbundance:
return node.__class__(list(chain.from_iterable(<EOL>(<EOL>flatten_list_abundance(member).members<EOL>if isinstance(member, ListAbundance) else<EOL>[member]<EOL>)<EOL>for member in node.members<EOL>)))<EOL>
Flattens the complex or composite abundance.