How to turn off or on assertion checking with system function?

In order to turn off assertions for specific flow or configuration we can use $assertoff even though it will not stop or kill the assertions.
In order to turn off assertions for specific flow or configuration we can use $assertoff even though it will not stop or kill the assertions.