code: def test_reset_run_errors_leaves_permanent_errors(self) -> None:
      cr = bahc.CodeRunner("This is a syntax error", "path", [])
      cr._failed = True
      cr.reset_run_errors()
      assert cr.failed is True
      assert cr.error is not None
      assert cr.error_detail is not None
  
imports: from __future__ import annotations
  import pytest
  import os
  import sys
  from os.path import abspath, dirname
  from types import ModuleType
  import bokeh.application.handlers.code_runner
label_desc: Use image node_id 9 for calling the TestCodeRunner obj's underlying member method code with example usage: obj.test_reset_run_errors_leaves_permanent_errors() without return types