@decorator
def decorate(fn, *args, **kw):
    with expect_warnings(*messages, assert_=False):
        return fn(*args, **kw)
@decorator
def decorate(fn, *args, **kw):
    with expect_warnings(*messages, assert_=False):
        return fn(*args, **kw)