There aren't any known codes in Free Realms that let you transform into a snake.
As an alternative, some players have mentioned there may be a cake on Snowy Side Hill that could help with something similar, so it might be worth investigating that area if you're curious.