code: def fit(self, X, y, *args, **kwargs):
      if self.statsmodel is None:
          import statsmodels.api as sm
  
          self.statsmodel = sm.OLS
  
      statsmodel = self.statsmodel(y, X, **self.parameters)
      self.fitted_ = statsmodel.fit(*args, **kwargs)
      return self.fitted_
  
file_path: pandas-ml/pandas_ml/smaccessors/base.py
imports: import pandas
  from pandas_ml.core import base
label_desc: Use image node_id 2 for calling the StatsModelsRegressor obj's underlying member method code with example usage: obj.fit(X, y) and returns: self