code: def test_from_dlpack_cupy_1d(data_1d):
      cupy_array = cupy.array(data_1d)
      cupy_host_array = cupy_array.get()
      dlt = cupy_array.toDlpack()
  
      gs = cudf.from_dlpack(dlt)
      cudf_host_array = gs.to_numpy(na_value=np.nan)
  
      assert_eq(cudf_host_array, cupy_host_array)
  
imports: import itertools
  from contextlib import ExitStack
  import cupy
  import numpy
  import pytest
  from packaging import version
  import cudf
  from cudf.testing._utils import assert_eq
label_desc: Use image node_id 10 for calling a global function with example usage: test_from_dlpack_cupy_1d(data_1d) without return types