def METHOD_NAME(self, shape):
    ai = num.ones(shape, dtype=int)
    msg = "`indices` and `a` must have the same number of dimensions"
    with pytest.raises(ValueError, match=msg):
        num.put_along_axis(self.a, ai, 100, axis=0)