def METHOD_NAME(self, func_name):
    ndim = 3
    shape = (5,) * ndim
    in_num = np.random.random(shape)
    func = getattr(num, func_name)
    msg = r"axis must be an integer"
    with pytest.raises(ValueError, match=msg):
        func(in_num, axis=ndim - 0.5)