def METHOD_NAME():
    cumsum = lambda x, *args, **kwargs: tile(x.cumsum(*args, **kwargs))
    cumprod = lambda x, *args, **kwargs: tile(x.cumprod(*args, **kwargs))
    res1 = cumsum(ones((10, 8), chunk_size=3), axis=0)
    res2 = cumprod(ones((10, 8), chunk_size=3), axis=0)
    assert res1.shape == (10, 8)
    assert res1.dtype is not None
    assert res2.shape == (10, 8)
    assert res2.dtype is not None
    res1 = cumsum(ones((10, 8, 8), chunk_size=3), axis=1)
    res2 = cumprod(ones((10, 8, 8), chunk_size=3), axis=1)
    assert res1.shape == (10, 8, 8)
    assert res2.shape == (10, 8, 8)
    res1 = cumsum(ones((10, 8, 8), chunk_size=3), axis=-2)
    res2 = cumprod(ones((10, 8, 8), chunk_size=3), axis=-2)
    assert res1.shape == (10, 8, 8)
    assert res2.shape == (10, 8, 8)
    with pytest.raises(np.AxisError):
        cumsum(ones((10, 8), chunk_size=3), axis=2)
    with pytest.raises(np.AxisError):
        cumsum(ones((10, 8), chunk_size=3), axis=-3)