code: def test_timedelta_series_to_numpy(data, dtype):
      gsr = cudf.Series(data, dtype=dtype)
  
      expected = np.array(
          cp.asnumpy(data) if isinstance(data, cp.ndarray) else data,
          dtype=dtype,
      )
      expected = expected[~np.isnan(expected)]
  
      actual = gsr.dropna().to_numpy()
  
      np.testing.assert_array_equal(expected, 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 5 for calling a global function with example usage: test_timedelta_series_to_numpy(data, dtype) without return types