In the function `set_init_environment` the doc string says `temp_dir` will be returned but is not returned.
In the function
set_init_environmentthe doc string saystemp_dirwill be returned but is not returned.