from time import sleep

debug_mode = False

time_to_exit = False
exiting = False
exit_code = 0


def get_debug_mode():
    return debug_mode


def trigger_exit(_exit_code):
    global time_to_exit, exit_code
    exit_code = _exit_code
    time_to_exit = True
    sleep(0.1)

[((18, 4, 18, 14), 'time.sleep', 'sleep', ({(18, 10, 18, 13): '(0.1)'}, {}), '(0.1)', False, 'from time import sleep\n')]