def remove_augmenters_inplace(self, func, parents=None):
parents = [] if parents is None else parents<EOL>subparents = parents + [self]<EOL>for lst in self.get_children_lists():<EOL><INDENT>to_remove = []<EOL>for i, aug in enumerate(lst):<EOL><INDENT>if func(aug, subparents):<EOL><INDENT>to_remove.append((i, aug))<EOL><DEDENT><DEDENT>for count_removed, (i, aug) in enumerate(to_remove):<EOL><INDENT>del lst[i - count_removed]<EOL><DEDENT>for aug in lst:<EOL><INDENT>aug.remove_augmenters_inplace(func, subparents)<EOL><DEDENT><DEDENT>
Remove in-place children of this augmenter that match a condition.

This is functionally identical to ``remove_augmenters()`` with
``copy=False``, except that it does not affect the topmost augmenter
(the one on which this function is initially called on).

Parameters
----------
func : callable
    See :func:`imgaug.augmenters.meta.Augmenter.remove_augmenters`.

parents : None or list of imgaug.augmenters.meta.Augmenter, optional
    List of parent Augmenter instances that lead to this
    Augmenter. If None, an empty list will be used.
    This parameter can usually be left empty and will be set
    automatically for children.

Examples
--------
>>> seq = iaa.Sequential([
>>>     iaa.Fliplr(0.5, name="fliplr"),
>>>    iaa.Flipud(0.5, name="flipud"),
>>> ])
>>> seq.remove_augmenters_inplace(lambda a, parents: a.name == "fliplr")

This removes the augmenter Fliplr from the Sequential object's children.