First to need to program your Raspberry Pi to detect fire on its camera and shut off the charger.
But that isn't enough! The battery shorts and fires under its own power, once it starts. You need the Raspi to turn this on.
Then you can just watch it sizzle and melt. No oxygen, no flame!
Do not run in a burning house and save your Note 7, like this guy.
Actually, he was saving his stupid MS laptop, because he didn't have a Chromebook. :)