code: def set_params(self, **parameters):
      if "statsmodel" in parameters:
          self.statsmodel = parameters.pop("statsmodel")
      try:
          # updated existing parameters
          self.parameters.update(parameters)
      except AttributeError:
          # parameters may not exists in case of grid search
          self.parameters = parameters
      # must return itself to make grid_search work
      return self
  
file_path: pandas-ml/pandas_ml/smaccessors/base.py
imports: import pandas
  from pandas_ml.core import base
label_desc: Use image node_id 5 for calling the StatsModelsRegressor obj's underlying member method code with example usage: obj.set_params() and returns: self