human
I wrote the below code

    def fake_keyevent(key, modifiers=0, text='', typ=QEvent.KeyPress):
        'Generate    a    new    fake    QKeyPressEvent.'
        evtmock = unittest.mock.create_autospec(QKeyEvent, instance=True)
        evtmock.key.return_value = key
        evtmock.modifiers.return_value = modifiers
        evtmock.text.return_value = text
        evtmock.type.return_value = typ
        return evtmock
    return fake_keyevent

What's a good function header?

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

@pytest.fixture
def fake_keyevent_factory():