code: def test_cached_data_removed(self):
      res = self.results
      # fill data-like members of the cache
      names = [
          "resid_response",
          "resid_deviance",
          "resid_pearson",
          "resid_anscombe",
      ]
      for name in names:
          getattr(res, name)
      # check that the attributes are present before calling remove_data
      for name in names:
          assert name in res._cache
          assert res._cache[name] is not None
      import warnings
  
      with warnings.catch_warnings():
          warnings.simplefilter("ignore", FutureWarning)
          # FutureWarning for BIC changes
          res.remove_data()
  
      for name in names:
          assert res._cache[name] is None
  
imports: from statsmodels.compat.pandas import assert_series_equal
  from io import BytesIO
  import pickle
  import numpy
  import pandas
  import statsmodels.api
label_desc: Use image node_id 2 for calling the TestRemoveDataPickleGLM obj's underlying member method code with example usage: obj.test_cached_data_removed() without return types