def coroutine(func):

    @wraps(func)
    def initialization(*args, **kwargs):

        start = func(*args, **kwargs)
        next(start)

        return start

    return initialization
Initializes coroutine essentially priming it to the yield statement.
dataset/ETHPy150Open jjangsangy/py-translate/translate/coroutines.py/coroutine