From the [Wikipedia page](https://en.wikipedia.org/wiki/Trolley_problem) on the trolley problem:



> 
> There is a runaway trolley barreling down the railway tracks. Ahead,
>  on the tracks, there are five people tied up and unable to move. The
>  trolley is headed straight for them. You are standing some distance
>  off in the train yard, next to a lever. If you pull this lever, the
>  trolley will switch to a different set of tracks. However, you notice
>  that there is one person on the side track. You have two options: (1)
>  Do nothing, and the trolley kills the five people on the main track.
>  (2) Pull the lever, diverting the trolley onto the side track where it
>  will kill one person.
> 
> 
> 


[![enter image description here](https://i.stack.imgur.com/UJuc8.jpg)](https://i.stack.imgur.com/UJuc8.jpg)


What are the legal aspects of finding yourself in a train yard in the United States when this happens? Is it a crime to pull the lever? Is it a crime to not pull the lever? Does it depend on if you're professionally qualified to pull the lever?



What is the legal take on the trolley problem?