code: def test_methods(self):
      from sklearn.base import clone
  
      obj = base.StatsModelsRegressor(sm.OLS, missing="raise")
      cloned = clone(obj)
      self.assertIsInstance(cloned, base.StatsModelsRegressor)
      self.assertTrue(cloned.statsmodel is sm.OLS)
  
      params = cloned.get_params()
      self.assertEqual(
          params, {"statsmodel": sm.OLS, "missing": "raise"}
      )
  
      setted = cloned.set_params(statsmodel=sm.GLM, missing="none")
      self.assertIsInstance(setted, base.StatsModelsRegressor)
      self.assertEqual(
          setted.get_params(), {"statsmodel": sm.GLM, "missing": "none"}
      )
  
file_path: pandas-ml/pandas_ml/smaccessors/test/test_base.py
imports: import pytest
  import numpy
  import sklearn.datasets
  import statsmodels.api
  import pandas_ml.smaccessors.base
  import pandas_ml.util.testing
label_desc: Use image node_id 1 for calling the TestBaseRegressor obj's underlying member method code with example usage: obj.test_methods() without return types