code: def test_plot(default_kwargs, close_figures):
      class_kwargs, outer, inner = _to_class_kwargs(default_kwargs)
      res = STL(**class_kwargs).fit(outer_iter=outer, inner_iter=inner)
      res.plot()
  
      class_kwargs["endog"] = pd.Series(
          class_kwargs["endog"], name="CO2"
      )
      res = STL(**class_kwargs).fit()
      res.plot()
  
imports: from statsmodels.compat.pandas import MONTH_END
  import os
  import pickle
  import numpy
  from numpy.testing import assert_allclose
  import pandas
  import pytest
  from statsmodels.datasets import co2
  from statsmodels.tsa.seasonal import STL, DecomposeResult
label_desc: Use image node_id 20 for calling a global function with example usage: test_plot(default_kwargs, close_figures) without return types