In Shrek 2 Pinocchio is trying to avoid lying by using double negatives. He knows where Shrek is. He says "I don't know where he's not." This is actually a lie (though his nose doesn't grow). If he knew where Shrek was he would know everywhere Shrek isn't. You can't just randomly throw negatives into a sentence and expect it to be a double negative.
The intent of the scene was clear. He's just trying to say a lot of double negatives and be confusing. It's not a moment of world building for the mechanics of Pinocchio's nose lol