code: def test_handle_alert():
      # Unknown test suite
      with pytest.raises(ReleaseTestConfigError):
          handle.handle_result(
              Test(name="unit_alert_test", alert="invalid"),
              Result(status=ResultStatus.SUCCESS.value),
          )
  
      # Alert raised
      with pytest.raises(ResultsAlert):
          handle.handle_result(
              Test(name="unit_alert_test", alert="default"),
              Result(status="unsuccessful"),
          )
  
      # Everything fine
      handle.handle_result(
          Test(name="unit_alert_test", alert="default"),
          Result(status=ResultStatus.SUCCESS.value),
      )
  
file_path: ray/release/ray_release/tests/test_alerts.py
imports: import sys
  import pytest
  from ray_release.alerts import handle, default
  from ray_release.test import Test
  from ray_release.exception import ReleaseTestConfigError, ResultsAlert
  from ray_release.result import Result, ResultStatus
label_desc: Use image node_id 1 for calling a global function with example usage: test_handle_alert() without return types