What happens to railroad flashing-lights and gates when the commercial and residential power goes out?

These warning devices are required to have a storage battery as a source of standard power for signal and gate operation during outages of the primary power source.