populate_soln_env function

Returns solution environment and test code from template.