It's a Ganz CSMG!
They run on line 2 in Budapest, along the Pest side of the Danube, and sometimes, during higher floods parts of the track are under water, so this scene is actually possible. (In reality no service on the lower parts when they are under water)