While playing on any level, pause the game, and on the pause screen, hold down applicable L and R buttons and fairly quickly tap the code on the D-pad with those buttons depressed. First, hold down the L1 or L2 input, then, while still holding it down, add the R1 or R2. If you just hit the two buttons at once and hold them down, the codes don't always seem to be read properly.
A sound effect will notify you that when you un-pause the game, it will be with the desired effect. If there is no sound, release the buttons and try again with the game still paused.
These codes work for both the North American and Japanese releases of this game.