make set_env non private

2 jobs for 190-clean-up-examples-and-tests-where-observationbuilders-inherit-from-treeobsforrailenv in 41 minutes and 29 seconds (queued for 13 seconds)