code: def test_stl_bind_global():
      import pybind11_cross_module_tests as cm
  
      with pytest.raises(RuntimeError) as excinfo:
          cm.register_nonlocal_map()
      assert (
          str(excinfo.value)
          == 'generic_type: type "NonLocalMap" is already registered!'
      )
  
      with pytest.raises(RuntimeError) as excinfo:
          cm.register_nonlocal_vec()
      assert (
          str(excinfo.value)
          == 'generic_type: type "NonLocalVec" is already registered!'
      )
  
      with pytest.raises(RuntimeError) as excinfo:
          cm.register_nonlocal_map2()
      assert (
          str(excinfo.value)
          == 'generic_type: type "NonLocalMap2" is already registered!'
      )
  
file_path: coremltools/deps/pybind11/tests/test_local_bindings.py
imports: import pytest
  import env
  from pybind11_tests import local_bindings
label_desc: Use image node_id 6 for calling a global function with example usage: test_stl_bind_global() without return types