code: def test_dt_accessor(data):
      df = DataFrame({"dt_col": data.copy()})
      ddf = dgd.from_cudf(df, npartitions=5)
  
      for i in [
          "year",
          "month",
          "day",
          "hour",
          "minute",
          "second",
          "weekday",
      ]:
          assert i in dir(ddf.dt_col.dt)
          assert_series_equal(
              getattr(ddf.dt_col.dt, i).compute().to_pandas(),
              getattr(df.dt_col.dt, i).to_pandas(),
          )
  
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 6 for calling a global function with example usage: test_dt_accessor(data) without return types