code: def test_timedelta_reductions(data, op, dtype):
      sr = cudf.Series(data, dtype=dtype)
      psr = sr.to_pandas()
  
      actual = getattr(sr, op)()
      expected = getattr(psr, op)()
  
      if np.isnat(expected.to_numpy()) and np.isnat(actual):
          assert True
      else:
          assert_eq(expected.to_numpy(), actual)
  
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 30 for calling a global function with example usage: test_timedelta_reductions(data, op, dtype) without return types