code: def test_stream_popen1():
      cmd_python = sys.executable + " -i -q -u"
      cmd = cmd_python + " -c print('hi')"
      # cmd = cmd.split(' ')
  
      with sp.Popen(
          cmd, stdout=sp.PIPE, stderr=sp.PIPE, text=True, shell=True
      ) as p:
          for out_line, err_line in read_popen_pipes(p):
              print(out_line, end="")
              print(err_line, end="")
  
          p.poll()
  
file_path: h2ogpt/tests/test_utils.py
imports: import sys
  import pytest
  from src.utils import get_list_or_str, read_popen_pipes, get_token_count, reverse_ucurve_list, undo_reverse_ucurve_list
  from tests.utils import wrap_test_forked
  import subprocess
label_desc: Use image node_id 2 for calling a global function with example usage: test_stream_popen1() without return types