code: def test_local_translator(msg):
      """Tests that a local translator works and that the local translator from
      the cross module is not applied"""
      with pytest.raises(RuntimeError) as excinfo:
          m.throws6()
      assert (
          msg(excinfo.value)
          == "MyException6 only handled in this module"
      )
  
      with pytest.raises(RuntimeError) as excinfo:
          m.throws_local_error()
      assert not isinstance(excinfo.value, KeyError)
      assert msg(excinfo.value) == "never caught"
  
      with pytest.raises(Exception) as excinfo:
          m.throws_local_simple_error()
      assert not isinstance(excinfo.value, cm.LocalSimpleException)
      assert msg(excinfo.value) == "this mod"
  
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 15 for calling a global function with example usage: test_local_translator(msg) without return types