code: def smoothed_demeaned(self, exog):
      components = self.smoothed(exog)
      means = components.mean(0)
      constant = means.sum() + self.alpha
      components_demeaned = components - means
      return components_demeaned, constant
  
imports: import numpy
  from statsmodels.genmod import families
  from statsmodels.sandbox.nonparametric.smoothers import PolySmoother
  from statsmodels.genmod.generalized_linear_model import GLM
  from statsmodels.tools.sm_exceptions import IterationLimitWarning, iteration_limit_doc
  import warnings
label_desc: Use image node_id 6 for calling the Results obj's underlying member method code with example usage: obj.smoothed_demeaned(exog) and returns: components_demeaned,  constant