<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getGroups(self, proteinId):
 """Return a list of protein groups a protein is associated with."""

        return [self.groups[gId] for gId in self._proteinToGroupIds[proteinId]]