code: def test_to_dlpack_cupy_1d(data_1d):
      expectation = data_size_expectation_builder(data_1d, False)
      with expectation:
          gs = cudf.Series(data_1d, nan_as_null=False)
          cudf_host_array = gs.to_numpy(na_value=np.nan)
          dlt = gs.to_dlpack()
  
          cupy_array = cupy_from_dlpack(dlt)
          cupy_host_array = cupy_array.get()
  
          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 8 for calling a global function with example usage: test_to_dlpack_cupy_1d(data_1d) without return types