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.random}
Return dict of all and only random effects in model.