code: def __init__(self, Y, alpha, exog, smoothers, family, offset):
      self.nobs, self.k_vars = exog.shape  # assumes exog is 2d
      # weird: If I put the previous line after the definition of self.mu,
      #    then the attributed do not get added
      self.Y = Y
      self.alpha = alpha
      self.smoothers = smoothers
      self.offset = offset
      self.family = family
      self.exog = exog
      self.offset = offset
      self.mu = self.linkinversepredict(exog)
  
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 1 to create a new Results object  with example: obj = Results(Y, alpha, exog, smoothers, family, offset)