human
Complete this python program:
def emits_warning(*messages):
assistant
#Here is the Python program you requested.

    """Decorator form of expect_warnings().
    Note that emits_warning does **not** assert that the warnings
    were in fact seen.
    """
    @decorator
    def decorate(fn, *args, **kw):
        with expect_warnings(assert_=False, *messages):
            return fn(*args, **kw)
    return decorate