The first sentence is correct. The light bulb does work by heating a filament inside a glass enclosure, and the heat produced by the filament produces light.

The second sentence, however, is not correct. It appears to be a separate statement unrelated to the first sentence, and it suggests the possibility of a simulated world or magic, which is not relevant to the topic of how light bulbs work or is just some sort of fragment of a sentence of something unrelated.
spam lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor creativity violence