def check_event_loop(loop):
    if (not is_event_loop(loop)):
        raise TypeError(('io_loop must be instance of IOLoop, not %r' % loop))
def check_event_loop(loop):
    if (not is_event_loop(loop)):
        raise TypeError(('io_loop must be instance of IOLoop, not %r' % loop))