code: def test_event_logging_apis_respect_stream_disablement_enablement(
      logging_fn,
  ):
      stream = TestStream()
      sys.stderr = stream
      message_content = "test message"
  
      assert stream.content is None
      logging_fn(message_content)
      assert message_content in stream.content
      stream.reset()
  
      logging_utils.disable_logging()
      logging_fn(message_content)
      assert stream.content is None
      stream.reset()
  
      logging_utils.enable_logging()
      assert stream.content is None
      logging_fn(message_content)
      assert message_content in stream.content
  
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 5 for calling a global function with example usage: test_event_logging_apis_respect_stream_disablement_enablement(logging_fn) without return types