def METHOD_NAME(tensor, axis, indices):
    # Work around for https://github.com/numba/numba/issues/8257
    axis = axis % tensor.ndim
    axis = numba_basic.to_scalar(axis)
    return np.METHOD_NAME(tensor, np.cumsum(indices)[:-1], axis=axis)