code: def test_dataframe_to_delayed():
      nelem = 100
  
      df = gd.DataFrame()
      df["x"] = np.arange(nelem)
      df["y"] = np.random.randint(nelem, size=nelem)
  
      ddf = dgd.from_cudf(df, npartitions=5)
  
      delays = ddf.to_delayed()
  
      assert len(delays) == 5
  
      # Concat the delayed partitions
      got = gd.concat([d.compute() for d in delays])
      assert_frame_equal(got.to_pandas(), df.to_pandas())
  
      # Check individual partitions
      divs = ddf.divisions
      assert len(divs) == len(delays) + 1
  
      for i, part in enumerate(delays):
          s = divs[i]
          # The last divisions in the last index
          e = None if i + 1 == len(delays) else divs[i + 1]
          expect = df[s:e].to_pandas()
          got = part.compute().to_pandas()
          assert_frame_equal(got, expect)
  
file_path: cudf/python/dask_cudf/dask_cudf/tests/test_delayed_io.py
imports: import numpy
  import pytest
  from pandas.testing import assert_frame_equal
  from dask.delayed import delayed
  import cudf
  import dask_cudf
label_desc: Use image node_id 5 for calling a global function with example usage: test_dataframe_to_delayed() without return types