Be on the safe side with assert.
We all have faced that situation when there was a bug in someone else's code or a third-party library...
Tags: python, beginners, tutorial, debugging