code: def test_rolling_consistency_mean(
      all_data, rolling_consistency_cases, center
  ):
      window, min_periods = rolling_consistency_cases
  
      result = all_data.rolling(
          window=window, min_periods=min_periods, center=center
      ).mean()
      expected = (
          all_data.rolling(
              window=window, min_periods=min_periods, center=center
          )
          .sum()
          .divide(
              all_data.rolling(
                  window=window, min_periods=min_periods, center=center
              ).count()
          )
      )
      tm.assert_equal(result, expected.astype("float64"))
  
file_path: pandas/pandas/tests/window/moments/test_moments_consistency_rolling.py
imports: import numpy
  import pytest
  from pandas import Series
  import pandas._testing
label_desc: Use image node_id 9 for calling a global function with example usage: test_rolling_consistency_mean(all_data, rolling_consistency_cases, center) without return types