def test_function():
        """a simple function to test the coroutine decorator"""
        this_generator = (yield "foop")
        process_queue.append(this_generator)
    
        # now pretend to do some real work
        while True:
            result = (yield 42)
a simple function to test the coroutine decorator
recipes/Python/498141_Generator_Coroutine_Access_Its_Own/recipe-498141.py