code: def _write_stderr(*args, **kwargs):
      _original_stderr_write(*args, **kwargs)
      save = StringIO()
      save.write(*args, **kwargs)
      APP_CONSOLE_LOGS.outputs(stderr_=save.getvalue())
  
imports: import sys
  import threading
  import time
  from io import StringIO
  from typing import Optional
  from labml.internal.app import AppTracker, AppTrackDataSource, Packet
label_desc: Use image node_id 2 for calling a global function with example usage: _write_stderr() without return types