def find_augmenters_by_names(self, names, regex=False, flat=True):
if regex:<EOL><INDENT>def comparer(aug, parents):<EOL><INDENT>for pattern in names:<EOL><INDENT>if re.match(pattern, aug.name):<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL><DEDENT>return self.find_augmenters(comparer, flat=flat)<EOL><DEDENT>else:<EOL><INDENT>return self.find_augmenters(lambda aug, parents: aug.name in names, flat=flat)<EOL><DEDENT>
Find augmenter(s) by names.

Parameters
----------
names : list of str
    Names of the augmenter(s) to search for.

regex : bool, optional
    Whether `names` is a list of regular expressions.

flat : boolean, optional
    See :func:`imgaug.augmenters.meta.Augmenter.find_augmenters`.

Returns
-------
augmenters : list of imgaug.augmenters.meta.Augmenter
    Nested list if flat was set to False.
    Flat list if flat was set to True.