def get_all_children(self, flat=False):
result = []<EOL>for lst in self.get_children_lists():<EOL><INDENT>for aug in lst:<EOL><INDENT>result.append(aug)<EOL>children = aug.get_all_children(flat=flat)<EOL>if len(children) > <NUM_LIT:0>:<EOL><INDENT>if flat:<EOL><INDENT>result.extend(children)<EOL><DEDENT>else:<EOL><INDENT>result.append(children)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return result<EOL>
Returns all children of this augmenter as a list.

If the augmenter has no children, the returned list is empty.

Parameters
----------
flat : bool
    If set to True, the returned list will be flat.

Returns
-------
result : list of imgaug.augmenters.meta.Augmenter
    The children as a nested or flat list.