code: def test_multi_captured(capfd):
      stream = StringIO()
      with redirect_stdout(stream):
          m.captured_output("a")
          m.raw_output("b")
          m.captured_output("c")
          m.raw_output("d")
      stdout, stderr = capfd.readouterr()
      assert stdout == "bd"
      assert stream.getvalue() == "ac"
  
imports: from contextlib import redirect_stderr, redirect_stdout
  from io import StringIO
  from pybind11_tests import iostream
label_desc: Use image node_id 17 for calling a global function with example usage: test_multi_captured(capfd) without return types