<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_result(cls, result):
 """ 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. """

        if len(result) == 3:
            items, count, context = result
        else:
            context = {}
            items, count = result
        return items, count, context