code: def test_cummethods_bool_in_object_dtype(self, method, expected):
      ser = pd.Series([False, True, np.nan, False])
      result = getattr(ser, method)()
      tm.assert_series_equal(result, expected)
  
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 6 for calling the TestSeriesCumulativeOps obj's underlying member method code with example usage: obj.test_cummethods_bool_in_object_dtype(method, expected) without return types