def require(cond: bool, exception=AssertionError, msg: str=None):
    """
    Deliberately defined assert function which will never be omitted by python interpreter and
    raise custom type exception
    :param cond: bool
    :param exception: Exception type which will be raised
    :param msg: str
    :return:
    """
    if not cond:
        raise exception(msg)
