code: def test_error_already_set_double_restore():
      m.test_error_already_set_double_restore(True)  # dry_run
      with pytest.raises(RuntimeError) as excinfo:
          m.test_error_already_set_double_restore(False)
      assert str(excinfo.value) == (
          "Internal error: pybind11::detail::error_fetch_and_normalize::restore()"
          " called a second time. ORIGINAL ERROR: ValueError: Random error."
      )
  
imports: import sys
  import pytest
  import env
  import pybind11_cross_module_tests
  import pybind11_tests
  from pybind11_tests import exceptions
label_desc: Use image node_id 22 for calling a global function with example usage: test_error_already_set_double_restore() without return types