human
Here's a good function header given the following:
I wrote the below code

    handler = Mock()
    def on_call(**kwargs):
        return handler(**kwargs)
    signal.connect(on_call)
    try:
        (yield handler)
    finally:
        signal.disconnect(on_call)
    handler.assert_called_with(signal=signal, **expected)

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

@decorator
def assert_signal_called(signal, **expected):