code: def test_datetime_series(self, datetime_series, func):
      tm.assert_numpy_array_equal(
          func(datetime_series).values,
          func(np.array(datetime_series)),
          check_dtype=True,
      )
  
      # with missing values
      ts = datetime_series.copy()
      ts[::2] = np.nan
  
      result = func(ts)[1::2]
      expected = func(np.array(ts.dropna()))
  
      tm.assert_numpy_array_equal(
          result.values, expected, check_dtype=False
      )
  
file_path: pandas/pandas/tests/series/test_cumulative.py
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
label_desc: Use image node_id 1 for calling the TestSeriesCumulativeOps obj's underlying member method code with example usage: obj.test_datetime_series(datetime_series, func) without return types