code: def test_timedelta_series_ops_with_scalars(
      data, other_scalars, dtype, op
  ):
      gsr = cudf.Series(data=data, dtype=dtype)
      psr = gsr.to_pandas()
  
      if op == "add":
          expected = psr + other_scalars
          actual = gsr + other_scalars
      elif op == "sub":
          expected = psr - other_scalars
          actual = gsr - other_scalars
      elif op == "truediv":
          expected = psr / other_scalars
          actual = gsr / other_scalars
      elif op == "floordiv":
          expected = psr // other_scalars
          actual = gsr // other_scalars
      elif op == "mod":
          expected = psr % other_scalars
          actual = gsr % other_scalars
  
      assert_eq(expected, actual)
  
      if op == "add":
          expected = other_scalars + psr
          actual = other_scalars + gsr
      elif op == "sub":
          expected = other_scalars - psr
          actual = other_scalars - gsr
      elif op == "truediv":
          expected = other_scalars / psr
          actual = other_scalars / gsr
      elif op == "floordiv":
          expected = other_scalars // psr
          actual = other_scalars // gsr
      elif op == "mod":
          expected = other_scalars % psr
          actual = other_scalars % gsr
  
      assert_eq(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 10 for calling a global function with example usage: test_timedelta_series_ops_with_scalars(data, other_scalars, dtype, op) without return types