code: def parse_result(cls, result):
          
          if len(result) == 3:
              items, count, context = result
          else:
              context = {}
              items, count = result
          return items, count, context
docs: Parse an items + count tuple result.
  
          May either be three item tuple containing items, count, and a context dictionary (see: relation convention)
          or a two item tuple containing only items and count.