code: def test_print(capture):
      from pybind11_tests import test_print_function
  
      with capture:
          test_print_function()
      assert (
          capture
          == """
          Hello, World!
          1 2.0 three True -- multiple args
          *args-and-a-custom-separator
          no new line here -- next print
          flush
          py::print + str.format = this
      """
      )
      assert capture.stderr == "this goes to stderr"
  
file_path: coremltools/deps/pybind11/tests/test_python_types.py
imports: import pytest
  from pybind11_tests import ExamplePythonTypes, ConstructorStats, has_optional, has_exp_optional
label_desc: Use image node_id 7 for calling a global function with example usage: test_print(capture) without return types