at the very least, run it inside a docker container (making sure of network and volumes i would say)
Hindsight is 20/20. Although why aren't assignments just a pdf
"This code has multiple faults. Your task is to find and fix them all."