Basiacly what you do is you put down a light_spot entity and change the "Appearance" to something else (It's always on normal by default) like a flicker A / B, there's of course more options than this so play around and see what you like the most.
*This also applies to the "Light" entity*