A spinal cord stimulator is implanted under the skin.

Typically a stimulator is battery-powered.
The device battery needs to be removed prior to cremation as it fits the criteria of a "biomechanical aid" in the Cremation Regulations.