Is Pleading Insanity Considered to be a Get Out of Jail Free Card?

What happens if you’re considering pleading insanity in the midst of your criminal case? How does one do this? You…