code: def test_from_cudf_with_generic_idx():
      cdf = cudf.DataFrame(
          {
              "a": list(range(20)),
              "b": list(reversed(range(20))),
              "c": list(range(20)),
          }
      )
  
      ddf = dgd.from_cudf(cdf, npartitions=2)
  
      assert isinstance(ddf.index.compute(), cudf.RangeIndex)
      dd.assert_eq(ddf.loc[1:2, ["a"]], cdf.loc[1:2, ["a"]])
  
imports: import random
  import cupy
  import numpy
  import pandas
  import pytest
  from packaging import version
  import dask
  from dask import dataframe
  from dask.dataframe.core import make_meta, meta_nonempty
  from dask.utils import M
  import cudf
  import dask_cudf
label_desc: Use image node_id 6 for calling a global function with example usage: test_from_cudf_with_generic_idx() without return types