Is there a way to do debug asserts?

In many programming languages there is the ability to make assertions that only run in development or testing, and are disabled in release mode. For example, in Rust you have assert!() which always runs, and debug_assert!() which only runs in development profiles or unit tests.

Is there a way to do this with Numba?