The test code for Core Engine, written in Python