def IsBad(result):
  """Whether or not a result is something to worry about.

  >>> IsBad(RESULT.PASSED)
  False
  >>> IsBad(RESULT.FAILED)
  True

  Args:
    result: The RESULT.
  Returns:
    Whether the result is bad.
  """
  return result in (RESULT.ERROR, RESULT.FAILED)
dataset/ETHPy150Open google/vroom/vroom/test.py/IsBad/original