code: def test_from_cudf():
      np.random.seed(0)
  
      df = pd.DataFrame(
          {
              "x": np.random.randint(0, 5, size=10000),
              "y": np.random.normal(size=10000),
          }
      )
  
      gdf = cudf.DataFrame.from_pandas(df)
  
      # Test simple around to/from dask
      ingested = dd.from_pandas(gdf, npartitions=2)
      dd.assert_eq(ingested, df)
  
      # Test conversion to dask.dataframe
      ddf = ingested.to_dask_dataframe()
      dd.assert_eq(ddf, df)
  
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 4 for calling a global function with example usage: test_from_cudf() without return types