def is_coroutine(function):
    return function.__code__.co_flags & 0x0080 or getattr(function, '_is_coroutine', False)
Returns a function which will validate a yaml file for correctness
dataset/ETHPy150Open timothycrosley/hug/hug/introspect.py/is_coroutine--crossover with--dataset/ETHPy150Open pre-commit/pre-commit/pre_commit/clientlib/validate_base.py/get_validator