def to_coroutine(func):
    if not iscoroutinefunction(func):
        func = coroutine(func)
    return func
Ensure that the function is coroutine.
dataset/ETHPy150Open klen/muffin/muffin/utils.py/to_coroutine