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