code: def test_run_restores_cwd(self) -> None:
      old_cwd = os.getcwd()
      cr = bahc.CodeRunner(
          "import os; os.chdir('/')", "path", ["foo", "10"]
      )
      assert not cr.ran
      m = cr.new_module()
      cr.run(m, lambda: None)
      assert os.getcwd() == old_cwd
  
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 14 for calling the TestCodeRunner obj's underlying member method code with example usage: obj.test_run_restores_cwd() without return types