<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def list_groups(self, **kwargs):
 """List all groups in organisation. :param int limit: The number of groups to retrieve :param str order: The ordering direction, ascending (asc) or descending (desc) :param str after: Get groups after/starting at given group ID :returns: a list of :py:class:`Group` objects. :rtype: PaginatedResponse """

        kwargs = self._verify_sort_options(kwargs)
        api = self._get_api(iam.DeveloperApi)
        return PaginatedResponse(api.get_all_groups, lwrap_type=Group, **kwargs)