code: def test_arithmetic_op_exceptions(self):
      psser = self.ks_start_date
      py_datetime = self.pd_start_date.dt.to_pydatetime()
      datetime_index = ps.Index(self.pd_start_date)
  
      for other in [1, 0.1, psser, datetime_index, py_datetime]:
          expected_err_msg = "Addition can not be applied to datetimes."
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: psser + other
          )
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: other + psser
          )
  
          expected_err_msg = (
              "Multiplication can not be applied to datetimes."
          )
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: psser * other
          )
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: other * psser
          )
  
          expected_err_msg = (
              "True division can not be applied to datetimes."
          )
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: psser / other
          )
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: other / psser
          )
  
          expected_err_msg = (
              "Floor division can not be applied to datetimes."
          )
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: psser // other
          )
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: other // psser
          )
  
          expected_err_msg = "Modulo can not be applied to datetimes."
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: psser % other
          )
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: other % psser
          )
  
      expected_err_msg = (
          "Datetime subtraction can only be applied to datetime series."
      )
  
      for other in [1, 0.1]:
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: psser - other
          )
          self.assertRaisesRegex(
              TypeError, expected_err_msg, lambda: other - psser
          )
  
      self.assertRaisesRegex(
          TypeError, expected_err_msg, lambda: psser - other
      )
      self.assertRaises(
          NotImplementedError, lambda: py_datetime - psser
      )
  
imports: import datetime
  import unittest
  import numpy
  import pandas
  from pyspark import pandas
  from pyspark.testing.pandasutils import PandasOnSparkTestCase
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 7 for calling the SeriesDateTimeTestsMixin obj's underlying member method code with example usage: obj.test_arithmetic_op_exceptions() without return types