code: def test_timedelta_index_properties(data, dtype, name):
      gdi = cudf.Index(data, dtype=dtype, name=name)
      pdi = gdi.to_pandas()
  
      def local_assert(expected, actual):
          if actual._values.null_count:
              assert_eq(expected, actual.astype("float64"))
          else:
              assert_eq(expected, actual)
  
      expected_days = pdi.days
      actual_days = gdi.days
  
      local_assert(expected_days, actual_days)
  
      expected_seconds = pdi.seconds
      actual_seconds = gdi.seconds
  
      local_assert(expected_seconds, actual_seconds)
  
      expected_microseconds = pdi.microseconds
      actual_microseconds = gdi.microseconds
  
      local_assert(expected_microseconds, actual_microseconds)
  
      expected_nanoseconds = pdi.nanoseconds
      actual_nanoseconds = gdi.nanoseconds
  
      local_assert(expected_nanoseconds, actual_nanoseconds)
  
      expected_components = pdi.components
      actual_components = gdi.components
  
      if actual_components.isnull().any().any():
          assert_eq(
              expected_components, actual_components.astype("float")
          )
      else:
          assert_eq(
              expected_components,
              actual_components,
              check_index_type=not actual_components.empty,
          )
  
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 22 for calling a global function with example usage: test_timedelta_index_properties(data, dtype, name) without return types