code: def test_cumsum(self):
      pser = pd.Series([1.0, None, 0.0, 4.0, 9.0])
      psser = ps.from_pandas(pser)
      self.assert_eq(pser.cumsum(), psser.cumsum())
      self.assert_eq(
          pser.cumsum(skipna=False), psser.cumsum(skipna=False)
      )
      self.assert_eq(pser.cumsum().sum(), psser.cumsum().sum())
  
      # with reversed index
      pser.index = [4, 3, 2, 1, 0]
      psser = ps.from_pandas(pser)
      self.assert_eq(pser.cumsum(), psser.cumsum())
      self.assert_eq(
          pser.cumsum(skipna=False), psser.cumsum(skipna=False)
      )
  
      # bool
      pser = pd.Series([True, True, False, True])
      psser = ps.from_pandas(pser)
      self.assert_eq(pser.cumsum().astype(int), psser.cumsum())
      self.assert_eq(
          pser.cumsum(skipna=False).astype(int),
          psser.cumsum(skipna=False),
      )
  
      with self.assertRaisesRegex(
          TypeError, r"Could not convert object \(string\) to numeric"
      ):
          ps.Series(["a", "b", "c", "d"]).cumsum()
  
file_path: spark/python/pyspark/pandas/tests/series/test_cumulative.py
imports: import unittest
  import pandas
  from pyspark import pandas
  from pyspark.testing.pandasutils import ComparisonTestBase
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 3 for calling the SeriesCumulativeMixin obj's underlying member method code with example usage: obj.test_cumsum() without return types