How do they make a cord curly?

How do they make a cord curly?
A standard flat cord is coiled around a metal rod.

Then several rods are placed on a rack, and the racks are put into an industrial oven and baked for a carefully calculated amount of time at a specific temperature that will preserve the curl without damaging the wire.