code: def test_center_reindex_series(series, q):
      # shifter index
      s = [f"x{x:d}" for x in range(12)]
  
      series_xp = (
          series.reindex(list(series.index) + s)
          .rolling(window=25)
          .quantile(q)
          .shift(-12)
          .reindex(series.index)
      )
  
      series_rs = series.rolling(window=25, center=True).quantile(q)
      tm.assert_series_equal(series_xp, series_rs)
  
file_path: pandas/pandas/tests/window/test_rolling_quantile.py
imports: from functools import partial
  import numpy
  import pytest
  from pandas import DataFrame, Series, concat, isna, notna
  import pandas._testing
  from pandas.tseries import offsets
label_desc: Use image node_id 9 for calling a global function with example usage: test_center_reindex_series(series, q) without return types