def METHOD_NAME():
    call_count = 0
    @sqlalchemy_psycopg2_connector.wrap_query_exceptions
    def func():
        nonlocal call_count
        call_count += 1
        raise sqlalchemy.exc.OperationalError(
            statement="SELECT 1",
            params={},
            orig=psycopg2.errors.OperationalError(),
        )
    with pytest.raises(sqlalchemy.exc.OperationalError):
        func()
    assert call_count == 1