Not sure how one gets stuck in Cooke City of all places, but whatever.

Good News: It’s a tourist town; she will be safe and well-fed.

The closest thing she has to public transportation there is a tour bus. There may be others, but the Cody Shuttle tour bus service runs through Cooke City. That should be able to take her to Cody, Wyoming, and it’s airport.