code: def test_plot_quarter(close_figures):
      dta = macrodata.load_pandas().data
      dates = lmap(
          "-Q".join,
          zip(
              dta.year.astype(int).apply(str),
              dta.quarter.astype(int).apply(str),
          ),
      )
      # test dates argument
      quarter_plot(dta.unemp.values, dates)
  
      # test with a DatetimeIndex with no freq
      dta.set_index(
          pd.DatetimeIndex(dates, freq="QS-Oct"), inplace=True
      )
      quarter_plot(dta.unemp)
  
      # w freq
      # see pandas #6631
      dta.index = pd.DatetimeIndex(dates, freq="QS-Oct")
      quarter_plot(dta.unemp)
  
      # w PeriodIndex
      dta.index = pd.PeriodIndex(dates, freq="Q")
      quarter_plot(dta.unemp)
  
imports: from statsmodels.compat.pandas import MONTH_END
  from statsmodels.compat.python import lmap
  import calendar
  from io import BytesIO
  import locale
  import numpy
  from numpy.testing import assert_, assert_equal
  import pandas
  import pytest
  from statsmodels.datasets import elnino, macrodata
  from statsmodels.graphics.tsaplots import month_plot, plot_accf_grid, plot_acf, plot_ccf, plot_pacf, plot_predict, quarter_plot, seasonal_plot
  from statsmodels.tsa import arima_process
  from statsmodels.tsa.ar_model import AutoReg
  from statsmodels.tsa.arima.model import ARIMA
label_desc: Use image node_id 11 for calling a global function with example usage: test_plot_quarter(close_figures) without return types