code: def random_terms(self):
          '''Return dict of all and only random effects in model.'''
          return {k: v for (k, v) in self.terms.items() if v.randomf random_terms(self):
          '''Return dict of all and only random effects in model.'''
          return {k: v for (k, v) in self.terms.items() if v.random}
docs: Return dict of all and only random effects in model.