class_docstr: State transition logic
class_docstr_tok: ["State","transition","logic"]
code: def _state_hook(self, state: TestState) -> None:
      if state == TestState.JAILED:
          self._keep_github_issue_open()
      if state == TestState.PASSING:
          self.test.pop(Test.KEY_BISECT_BUILD_NUMBER, None)
          self.test.pop(Test.KEY_BISECT_BLAMED_COMMIT, None)
  
file_path: ray/release/ray_release/test_automation/release_state_machine.py
imports: from datetime import datetime, timedelta
  from ray_release.test_automation.state_machine import TestStateMachine, DEFAULT_ISSUE_OWNER
  from ray_release.test import Test, TestState
  from ray_release.logger import logger
label_desc: Use image node_id 2 for calling the ReleaseTestStateMachine obj's underlying member method code with example usage: obj._state_hook(state) without return types