code: def test_plots(close_figures):
      exog = add_constant(dta[["m1", "pop"]])
      mod = RecursiveLS(endog, exog)
      res = mod.fit()
  
      # Basic plot
      try:
          from pandas.plotting import register_matplotlib_converters
  
          register_matplotlib_converters()
      except ImportError:
          pass
      fig = res.plot_recursive_coefficient()
  
      # Specific variable
      fig = res.plot_recursive_coefficient(variables=["m1"])
  
      # All variables
      fig = res.plot_recursive_coefficient(variables=[0, "m1", "pop"])
  
      # Basic plot
      fig = res.plot_cusum()
  
      # Other alphas
      for alpha in [0.01, 0.10]:
          fig = res.plot_cusum(alpha=alpha)
  
      # Invalid alpha
      assert_raises(ValueError, res.plot_cusum, alpha=0.123)
  
      # Basic plot
      fig = res.plot_cusum_squares()
  
      # Numpy input (no dates)
      mod = RecursiveLS(endog.values, exog.values)
      res = mod.fit()
  
      # Basic plot
      fig = res.plot_recursive_coefficient()
  
      # Basic plot
      fig = res.plot_cusum()
  
      # Basic plot
      fig = res.plot_cusum_squares()
  
imports: import os
  import numpy
  from numpy.testing import assert_allclose, assert_equal, assert_raises
  import pandas
  import pytest
  from scipy.stats import norm
  from statsmodels.datasets import macrodata
  from statsmodels.genmod.api import GLM
  from statsmodels.regression.linear_model import OLS
  from statsmodels.regression.recursive_ls import RecursiveLS
  from statsmodels.stats.diagnostic import recursive_olsresiduals
  from statsmodels.tools import add_constant
  from statsmodels.tools.eval_measures import aic, bic
  from statsmodels.tools.sm_exceptions import ValueWarning
label_desc: Use image node_id 7 for calling a global function with example usage: test_plots(close_figures) without return types