code: def test_save_load(data):
      y, x, w = data
      res = RollingOLS(y, x, window=60).fit()
      fh = BytesIO()
      # test wrapped results load save pickle
      res.save(fh)
      fh.seek(0, 0)
      res_unpickled = res.__class__.load(fh)
      assert type(res_unpickled) is type(res)  # noqa: E721
  
      fh = BytesIO()
      # test wrapped results load save pickle
      res.save(fh, remove_data=True)
      fh.seek(0, 0)
      res_unpickled = res.__class__.load(fh)
      assert type(res_unpickled) is type(res)
  
imports: from io import BytesIO
  from itertools import product
  import warnings
  import numpy
  import pandas
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from statsmodels import tools
  from statsmodels.regression.linear_model import WLS
  from statsmodels.regression.rolling import RollingWLS, RollingOLS
label_desc: Use image node_id 12 for calling a global function with example usage: test_save_load(data) without return types