def METHOD_NAME(self, shape):
    # In Numpy, it raises IndexError.
    # In cuNumeric, it raises ValueError.
    ai = num.ones(shape, dtype=int)
    msg = "shape mismatch: indexing arrays could not be broadcast"
    with pytest.raises(IndexError, match=msg):
        num.take_along_axis(self.a, ai, axis=0)