It is used to prank Patrick twice, once by SpongeBob outside the Palace of Pranks and once by Frank in the store. It shoots out purple tubes both times.
When outside the Palace of Pranks, introducing the store to him, SpongeBob informs Patrick that he got a can of gag Seanut Brittle at the store. Patrick, overwhelmed, attempts to open the can to taste its contents. However, SpongeBob warns him that it's a booby trap, but Patrick doesn't fall for that and still believes it's actual seanut brittle, only for him to then be pranked as purple tubes shoot out of the can, to his disappointment.
When inside the Palace of Pranks, Patrick, despite having been pranked by it the first time, finds gag cans of Seanut Brittle in the store and once again opens one of them to taste the contents, then again being pranked as purple tubes shoot out.