End Code Function Python Example Test Cases