Once upon a time, there was actually a NASA Railroad. Then it was closed, and its switcher locomotives donated away. Then it was reopened two years ago to handle heavy equipment needed for the SLS (Space Launch System), of which the Artemis 1 mission later this month is a part.
Readers of the second book of the “People of the Water” Cycle may recall that two characters crossed paths with one of those locomotives, late in the narrative of The Crystalline Clarity. So far as I know, the NASA Railroad has never had a fatal auto collision accident in its history like the one described in the novel.
By odd coincidence, the former NASA switchers were EMD SW1500 locomotives, similar to the older EMD SW1 locomotive that pulls the luncheon and dinner trains at the Eureka Springs & North Arkansas Railway. (But another post for another time about that.)
https://en.wikipedia.org/wiki/NASA_Railroad
Locomotive #3 outside of the maintenance shops at KSC