code: def test_pickle(default_kwargs):
      class_kwargs, outer, inner = _to_class_kwargs(default_kwargs)
      mod = STL(**class_kwargs)
      res = mod.fit()
      pkl = pickle.dumps(mod)
      reloaded = pickle.loads(pkl)
      res2 = reloaded.fit()
      assert_allclose(res.trend, res2.trend)
      assert_allclose(res.seasonal, res2.seasonal)
      assert mod.config == reloaded.config
  
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 22 for calling a global function with example usage: test_pickle(default_kwargs) without return types