<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_groupnames(self, sgs):
 """Get servicegroups list :return: comma separated list of servicegroups :rtype: str """

        return ','.join([sgs[sg].get_name() for sg in self.servicegroups])