class_docstr: Accumulation specific tests. Generally these only
  make sense for numeric/boolean operations.
code: def check_accumulate(
      self, ser: pd.Series, op_name: str, skipna: bool
  ):
      try:
          alt = ser.astype("float64")
      except TypeError:
          # e.g. Period can't be cast to float64
          alt = ser.astype(object)
  
      result = getattr(ser, op_name)(skipna=skipna)
      expected = getattr(alt, op_name)(skipna=skipna)
      tm.assert_series_equal(result, expected, check_dtype=False)
  
imports: import pytest
  import pandas
  import pandas._testing
label_desc: Use image node_id 2 for calling the BaseAccumulateTests obj's underlying member method code with example usage: obj.check_accumulate(ser, op_name, skipna) without return types