Fact 1: a flashlight converts chemical energy into light energy. 
Fact 2: Only as long as there are batteries in the flashlight, the flashlight will function.
Chemical energy converted to light energy requires batteries.