code: def test_demo_stdout_stderr():
      """Check that script output is printed and shown to the end user"""
  
      dir = os.path.dirname(os.path.abspath(__file__))
  
      process = subprocess.Popen(
          [sys.executable, os.path.join(dir, "orion_black_box.py")],
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
      )
      stdout, stderr = process.communicate()
  
      stdout = stdout.decode("utf-8")
      stderr = stderr.decode("utf-8")
  
      assert "Start main process" in stdout
      assert "Start Child Process" in stdout
  
      assert "Child Error" in stderr
      assert "Main process Error" in stderr
  
imports: import os
  import shutil
  import subprocess
  import sys
  import tempfile
  from collections import defaultdict
  from contextlib import contextmanager
  import numpy
  import pytest
  import yaml
  import orion.core.cli
  import orion.core.io.experiment_builder
  from orion.core.cli.hunt import workon
  from orion.testing import OrionState
label_desc: Use image node_id 2 for calling a global function with example usage: test_demo_stdout_stderr() without return types