human
I wrote the below code

    from sqlalchemy.exc import SQLAlchemyError
    hass_recorder()
    def to_native():
        'Rasie    exception.'
        raise SQLAlchemyError()
    mck1 = MagicMock()
    mck1.to_native = to_native
    with pytest.raises(SQLAlchemyError):
        with patch('homeassistant.components.recorder.time.sleep') as e_mock:
            util.execute((mck1,))
    assert (e_mock.call_count == 2)

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

def test_recorder_bad_execute(hass_recorder):