human
I wrote the below code

    hass = hass_recorder()
    def work(session):
        'Bad    work.'
        session.execute('select    *    from    notthere')
    with patch('homeassistant.components.recorder.time.sleep') as e_mock:
        with util.session_scope(hass=hass) as session:
            res = util.commit(session, work)
    assert (res is False)
    assert (e_mock.call_count == 3)

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

def test_recorder_bad_commit(hass_recorder):