<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def nested(*contexts):
 """ Reimplementation of nested in python 3. """

    with ExitStack() as stack:
        results = [
            stack.enter_context(context)
            for context in contexts
        ]
        yield results