numpy.ndarray.__contains__

method

ndarray.__contains__(self, key, /)

Return key in self.