code: def test_assign():
      np.random.seed(0)
      df = pd.DataFrame(
          {
              "x": np.random.randint(0, 5, size=20),
              "y": np.random.normal(size=20),
          }
      )
  
      dgf = dd.from_pandas(
          cudf.DataFrame.from_pandas(df), npartitions=2
      )
      pdcol = pd.Series(np.arange(20) + 1000)
      newcol = dd.from_pandas(
          cudf.Series(pdcol), npartitions=dgf.npartitions
      )
      got = dgf.assign(z=newcol)
  
      dd.assert_eq(got.loc[:, ["x", "y"]], df)
      np.testing.assert_array_equal(
          got["z"].compute().values_host, pdcol
      )
  
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 19 for calling a global function with example usage: test_assign() without return types