<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fitted(self):
 """ Whether all models in the group have been fitted. """

        return (all(m.fitted for m in self.models.values())
                if self.models else False)