code: def nested(*contexts):
      
      with ExitStack() as stack:
          results = [
              stack.enter_context(context)
              for context in contexts
          ]
          yield results
docs: Reimplementation of nested in python 3.