human
I wrote the below code

    def test_decorator(func):
        def test_decorated(self, *args, **kwargs):
            self.assertRaisesRegexp(segmentio.EventValidationError, message, func, self, *args, **kwargs)
            self.assert_no_events_emitted()
        return test_decorated
    return test_decorator

What's a good function header?
assistant
#Here's a good function header.

def expect_failure_with_message(message):