Do not use plain `assert` statements.  If this is a requirement for argument validation, use an `if` statement, and raise a `ValueError` if the arguments are not valid.