def AssertWithError(condition, error):
  if callable(condition):
    condition = condition()
  if not condition:
    ExitWithError(error)
If condition is false, exit with error.
dataset/ETHPy150Open spranesh/Redhawk/redhawk/utils/util.py/AssertWithError