def assert_(condition, message='', exception_type=AssertionError):
    """https://raw.githubusercontent.com/inferno-pytorch/inferno/0561e8a95cde6bfc5e10a3609841b7b0ca5b03ca/inferno/utils/exceptions.py
	Like assert, but with arbitrary exception types."""
    if not condition:
        raise exception_type(message)
