code: def test_dt_series(data, field):
      pdsr = pd.Series(data.copy())
      sr = Series(pdsr)
      dsr = dgd.from_cudf(sr, npartitions=5)
      base = getattr(pdsr.dt, field)
      test = (
          getattr(dsr.dt, field).compute().to_pandas().astype("int64")
      )
      assert_series_equal(base, test)
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_series_equal
  from dask import dataframe
  from cudf import DataFrame, Series, date_range
  from cudf.testing._utils import assert_eq, does_not_raise
  import dask_cudf
label_desc: Use image node_id 5 for calling a global function with example usage: test_dt_series(data, field) without return types