LED hard-connected to battery - what is the purpose of this device?
It is the innards of a light up balloon that you can find at Walmart.
Image from here
You can see that the grey angled piece is part of a switch mechanism activated by a slide switch on the side. This is now distorted and partially on the upper half.