code: def test_plot_pacf_kwargs(close_figures):
      # Just test that it runs.
      fig = plt.figure()
      ax = fig.add_subplot(111)
  
      ar = np.r_[1.0, -0.9]
      ma = np.r_[1.0, 0.9]
      armaprocess = tsp.ArmaProcess(ar, ma)
      rs = np.random.RandomState(1234)
      pacf = armaprocess.generate_sample(
          100, distrvs=rs.standard_normal
      )
  
      buff = BytesIO()
      plot_pacf(pacf, ax=ax)
      fig.savefig(buff, format="rgba")
  
      buff_linestyle = BytesIO()
      fig_linestyle = plt.figure()
      ax = fig_linestyle.add_subplot(111)
      plot_pacf(pacf, ax=ax, ls="-")
      fig_linestyle.savefig(buff_linestyle, format="rgba")
  
      buff_with_vlines = BytesIO()
      fig_with_vlines = plt.figure()
      ax = fig_with_vlines.add_subplot(111)
      vlines_kwargs = {"linestyles": "dashdot"}
      plot_pacf(pacf, ax=ax, vlines_kwargs=vlines_kwargs)
      fig_with_vlines.savefig(buff_with_vlines, format="rgba")
  
      buff.seek(0)
      buff_linestyle.seek(0)
      buff_with_vlines.seek(0)
      plain = buff.read()
      linestyle = buff_linestyle.read()
      with_vlines = buff_with_vlines.read()
  
      assert_(plain != linestyle)
      assert_(with_vlines != plain)
      assert_(linestyle != with_vlines)
  
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 4 for calling a global function with example usage: test_plot_pacf_kwargs(close_figures) without return types