@pytest.mark.parametrize('engine', ['pandas', pytest.param('cudf', marks=pytest.mark.gpu)])
def test_set_index_interpolate_large_uint(engine):
    if (engine == 'cudf'):
        cudf = pytest.importorskip('cudf')
        dask_cudf = pytest.importorskip('dask_cudf')
    'This test is for #7304'
    df = pd.DataFrame({'x': np.array([612509347682975743, 616762138058293247], dtype=np.uint64)})
    if (engine == 'cudf'):
        gdf = cudf.from_pandas(df)
        d = dask_cudf.from_cudf(gdf, npartitions=2)
    else:
        d = dd.from_pandas(df, 1)
    d1 = d.set_index('x', npartitions=1)
    assert (d1.npartitions == 1)
    assert (set(d1.divisions) == {612509347682975743, 616762138058293247})
@pytest.mark.parametrize('engine', ['pandas', pytest.param('cudf', marks=pytest.mark.gpu)])
def test_set_index_interpolate_large_uint(engine):
    if (engine == 'cudf'):
        cudf = pytest.importorskip('cudf')
        dask_cudf = pytest.importorskip('dask_cudf')
    'This test is for #7304'
    df = pd.DataFrame({'x': np.array([612509347682975743, 616762138058293247], dtype=np.uint64)})
    if (engine == 'cudf'):
        gdf = cudf.from_pandas(df)
        d = dask_cudf.from_cudf(gdf, npartitions=2)
    else:
        d = dd.from_pandas(df, 1)
    d1 = d.set_index('x', npartitions=1)
    assert (d1.npartitions == 1)
    assert (set(d1.divisions) == {612509347682975743, 616762138058293247})