code: def test_timedelta_series_cmpops_pandas_compatibility(
      data1, data2, op
  ):
      gsr1 = cudf.Series(data=data1, dtype="timedelta64[ns]")
      psr1 = gsr1.to_pandas()
  
      gsr2 = cudf.Series(data=data2, dtype="timedelta64[ns]")
      psr2 = gsr2.to_pandas()
  
      expect = op(psr1, psr2)
      with cudf.option_context("mode.pandas_compatible", True):
          got = op(gsr1, gsr2)
  
      assert_eq(expect, got)
  
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 36 for calling a global function with example usage: test_timedelta_series_cmpops_pandas_compatibility(data1, data2, op) without return types