code: def test_guard_capture(capsys):
      msg = "I've been redirected to Python, I hope!"
      m.guard_output(msg)
      stdout, stderr = capsys.readouterr()
      assert stdout == msg
      assert stderr == ""
  
imports: from contextlib import redirect_stderr, redirect_stdout
  from io import StringIO
  from pybind11_tests import iostream
label_desc: Use image node_id 12 for calling a global function with example usage: test_guard_capture(capsys) without return types