code: def test_timedelta_invalid_ops():
      sr = cudf.Series([1, 2, 3], dtype="timedelta64[ns]")
      psr = sr.to_pandas()
  
      assert_exceptions_equal(
          lfunc=operator.add,
          rfunc=operator.add,
          lfunc_args_and_kwargs=([psr, 1],),
          rfunc_args_and_kwargs=([sr, 1],),
      )
  
      assert_exceptions_equal(
          lfunc=operator.add,
          rfunc=operator.add,
          lfunc_args_and_kwargs=([psr, "a"],),
          rfunc_args_and_kwargs=([sr, "a"],),
      )
  
      dt_sr = cudf.Series([1, 2, 3], dtype="datetime64[ns]")
      dt_psr = dt_sr.to_pandas()
  
      assert_exceptions_equal(
          lfunc=operator.mod,
          rfunc=operator.mod,
          lfunc_args_and_kwargs=([psr, dt_psr],),
          rfunc_args_and_kwargs=([sr, dt_sr],),
      )
  
      assert_exceptions_equal(
          lfunc=operator.mod,
          rfunc=operator.mod,
          lfunc_args_and_kwargs=([psr, "a"],),
          rfunc_args_and_kwargs=([sr, "a"],),
          check_exception_type=False,
      )
  
      assert_exceptions_equal(
          lfunc=operator.gt,
          rfunc=operator.gt,
          lfunc_args_and_kwargs=([psr, dt_psr],),
          rfunc_args_and_kwargs=([sr, dt_sr],),
      )
  
      assert_exceptions_equal(
          lfunc=operator.lt,
          rfunc=operator.lt,
          lfunc_args_and_kwargs=([psr, dt_psr],),
          rfunc_args_and_kwargs=([sr, dt_sr],),
      )
  
      assert_exceptions_equal(
          lfunc=operator.ge,
          rfunc=operator.ge,
          lfunc_args_and_kwargs=([psr, dt_psr],),
          rfunc_args_and_kwargs=([sr, dt_sr],),
      )
  
      assert_exceptions_equal(
          lfunc=operator.le,
          rfunc=operator.le,
          lfunc_args_and_kwargs=([psr, dt_psr],),
          rfunc_args_and_kwargs=([sr, dt_sr],),
      )
  
      assert_exceptions_equal(
          lfunc=operator.truediv,
          rfunc=operator.truediv,
          lfunc_args_and_kwargs=([psr, dt_psr],),
          rfunc_args_and_kwargs=([sr, dt_sr],),
      )
  
      assert_exceptions_equal(
          lfunc=operator.floordiv,
          rfunc=operator.floordiv,
          lfunc_args_and_kwargs=([psr, dt_psr],),
          rfunc_args_and_kwargs=([sr, dt_sr],),
      )
  
      assert_exceptions_equal(
          lfunc=operator.mul,
          rfunc=operator.mul,
          lfunc_args_and_kwargs=([psr, dt_psr],),
          rfunc_args_and_kwargs=([sr, dt_sr],),
      )
  
      assert_exceptions_equal(
          lfunc=operator.mul,
          rfunc=operator.mul,
          lfunc_args_and_kwargs=([psr, psr],),
          rfunc_args_and_kwargs=([sr, sr],),
          check_exception_type=False,
      )
  
      assert_exceptions_equal(
          lfunc=operator.xor,
          rfunc=operator.xor,
          lfunc_args_and_kwargs=([psr, psr],),
          rfunc_args_and_kwargs=([sr, sr],),
      )
  
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 25 for calling a global function with example usage: test_timedelta_invalid_ops() without return types