code: def test():
      _stderr = sys.stderr
      sys.stderr = _stringio = MyStringIO(_stderr)
      print("oops\noops", file=sys.stderr)
      raise RuntimeError("test")
  
file_path: labml/client/test/capture_stderr.py
imports: import sys
  from io import StringIO
label_desc: Use image node_id 1 for calling a global function with example usage: test() without return types