under the hood, there is a fuse box on the right side. In that fuse box, you will see a red square fuse, its slightly taller than the rest. Pull it out for about 30 seconds. This will reset everything in the car, its the same as disconnecting the battery.
After you put the fuse back in, the CEL and IMA lights should be off. But now the emissions readiness codes are also reset, so you will have to drive the car around and do some city and highway driving. You will know that all the emissions codes are set, when you turn the key just to on without starting the car, the CEL will come on and just go off after a few seconds. But if it blinks then goes off, then it is not ready for emissions testing
Its kinda hard to explain, so I hope my description makes sense.
But if the IMA and CEL lights come back on right away after a reset, this trick might not work.
You can also try getting a simple grid charger (around $200) to see if it can help your battery enough so it wont throw that code anymore.
(Fuse #16 below)