code: def test_event_logging_stream_flushes_properly():
      stream = TestStream()
      sys.stderr = stream
  
      eprint("foo", flush=True)
      assert "foo" in stream.content
      assert stream.flush_count > 0
  
file_path: mlflow/tests/utils/test_logging_utils.py
imports: import logging
  import sys
  import pytest
  import mlflow
  from mlflow.utils import logging_utils
  from mlflow.utils.logging_utils import eprint
label_desc: Use image node_id 6 for calling a global function with example usage: test_event_logging_stream_flushes_properly() without return types