condition : array_like, bool
Boolean index array having same shape as the initial dimensions of the list of
invert : bool, optional
If True, the boolean array condition is inverted element-wise.
If invert is False, return the elements where condition is True.
If invert is True, return the elements where condition (i.e., numpy.invert(condition)) is True.