code: def test_timedelta_dt_properties(data, dtype):
      gsr = cudf.Series(data, dtype=dtype)
      psr = gsr.to_pandas()
  
      def local_assert(expected, actual):
          if gsr.isnull().any():
              assert_eq(expected, actual.astype("float"))
          else:
              assert_eq(expected, actual)
  
      expected_days = psr.dt.days
      actual_days = gsr.dt.days
  
      local_assert(expected_days, actual_days)
  
      expected_seconds = psr.dt.seconds
      actual_seconds = gsr.dt.seconds
  
      local_assert(expected_seconds, actual_seconds)
  
      expected_microseconds = psr.dt.microseconds
      actual_microseconds = gsr.dt.microseconds
  
      local_assert(expected_microseconds, actual_microseconds)
  
      expected_nanoseconds = psr.dt.nanoseconds
      actual_nanoseconds = gsr.dt.nanoseconds
  
      local_assert(expected_nanoseconds, actual_nanoseconds)
  
imports: import datetime
  import operator
  import cupy
  import numpy
  import pandas
  import pytest
  import cudf
  from cudf.testing import _utils
  from cudf.testing._utils import assert_eq, assert_exceptions_equal
label_desc: Use image node_id 16 for calling a global function with example usage: test_timedelta_dt_properties(data, dtype) without return types