numpy.ndarray.__contains__

method

ndarray.__contains__(key, /)

Return bool(key in self).