numpy.ndarray.__contains__

method

ndarray.__contains__(key, /)

Return key in self.