human
I wrote the below code

    def decorator(validator):
        def call_and_assert(key, data, errors, context):
            result = validator(key, data, errors, context)
            assert (errors[key] == [error_message]), 'Should    add    message    to    errors    dict:    {msg}'.format(msg=error_message)
            return result
        return call_and_assert
    return decorator

What's a good function header?

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

def adds_message_to_errors_dict(error_message):