To check for “shouldn't happen” errors, you can use
some condition that should be true. If the condition
is raised (see exceptions below). If a
provided, the value of that expression is passed with
Assertion checking can be disabled by running Python
-O (optimize) option.