code: def test_event_logging_apis_respect_stderr_reassignment(logging_fn):
      stream1 = TestStream()
      stream2 = TestStream()
      message_content = "test message"
  
      sys.stderr = stream1
      assert stream1.content is None
      logging_fn(message_content)
      assert message_content in stream1.content
      assert stream2.content is None
      stream1.reset()
  
      sys.stderr = stream2
      assert stream2.content is None
      logging_fn(message_content)
      assert message_content in stream2.content
      assert stream1.content is None
  
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 4 for calling a global function with example usage: test_event_logging_apis_respect_stderr_reassignment(logging_fn) without return types