<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def groups(self) -> typing.Iterator['Group']: """ Iterates over all groups Returns: generator of Group """

        for country in self.countries:
            for group in country.groups:

                yield group