Just a brief shot - five or six seconds - in "Washington Story," from around 1954, to establish movement of a U.S. representative from the District of Columbia to his home state of Massachusetts. Except that it's some sort of NYC electric motor leading a train southbound along the Hudson. My guess is a T Motor - number is 27-something, maybe 271.
The shot is probably at a station - there's fencing between tracks, and a pedestrian bridge in the background, though that is beyond the end of the fencing - maybe it's private access to the riverfront.
There are other brief train scenes - boarding car to leave for Washington, and then in a compartment.
David