def METHOD_NAME(unlock, in_atomic_block):
    with patch("contentcuration.db.advisory_lock.connection") as conn:
        conn.in_atomic_block = in_atomic_block
        with raises(NotImplementedError):
            with execute_lock(99, key2=99, unlock=unlock, session=False, shared=False, wait=False):
                pass