code: def sort_return_tuples(response, groups=None, **options):
      
      if not response or not groups:
          return response
      return list(zip(*[response[i::groups] for i in range(groups)]))
docs: If ``groups`` is specified, return the response as a list of
      n-element tuples with n being the value found in options['groups']