code: def __next__(self):
      results = self.results
      Y = self.Y
      self.weights = self.family.weights(results.mu)
      self.initialize(self.design)
      Z = results.predicted + self.family.link.deriv(results.mu) * (
          Y - results.mu
      )
      newresults = super().fit(Z)
      newresults.Y = Y
      newresults.mu = self.family.link.inverse(newresults.predicted)
      self.iter += 1
      return newresults
  
file_path: nipy/nipy/algorithms/statistics/models/glm.py
imports: import numpy
  from .None import family
  from .regression import WLSModel
label_desc: Use image node_id 4 for calling the Model obj's underlying member method code with example usage: obj.__next__() and returns: newresults