<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 a simple items result. May either be two item tuple containing items and a context dictionary (see: relation convention) or a list of items. """

        if isinstance(result, tuple) == 2:
            items, context = result
        else:
            context = {}
            items = result
        return items, context