code: def test_dynamic_compile_shows_nicely():
      import importlib.util
      import sys
  
      src = "def foo():\n assert 1 == 0\n"
      name = "abc-123"
      spec = importlib.util.spec_from_loader(name, loader=None)
      module = importlib.util.module_from_spec(spec)
      code = compile(src, name, "exec")
      exec(code, module.__dict__)
      sys.modules[name] = module
      module.foo()
  
imports: import pytest
  from pytest import raises
label_desc: Use image node_id 10 for calling a global function with example usage: test_dynamic_compile_shows_nicely() without return types