Apparently, BNSF is already testing a battery powered locomotive.
https://www.bnsf.com/news-media/rail...ocomotive.html
But the key for its usage is in a consist with regular diesel electric locomotives.
They are not planning on using it in an entire consist of battery powered locomotives.
Note, 20,000 to 50,000 lithium ion cells in the battery of that locomotive.