human
Complete the below
def emits_warning(*messages):

    ''''Decorator form of expect_warnings().
    Note that emits_warning does **not** assert that the warnings
    were in fact seen.'
    '''
assistant
#Here is the Python code you requested.
    @decorator
    def decorate(fn, *args, **kw):
        with expect_warnings(assert_=False, *messages):
            return fn(*args, **kw)
    return decorate