code: def get_groups(self):
          
          response = self.client.list_groups(UserPoolId=self.user_pool_id)
          return [self.get_group_obj(group_data)
                  for group_data in response.get('Groups')]
docs: Returns all groups for a user pool. Returns instances of the
          self.group_class.
          :return: list of instances