code: def test_output_logger_captured(caplog):
      caplog.set_level(logging.WARN)
      with OutputLogger("log", "INFO"):
          print("test")
          assert (
              caplog.text == ""
          ), "Context failed to log at the correct level"
  
imports: import logging
  import pytest
  from data_describe.misc.logging import OutputLogger
label_desc: Use image node_id 2 for calling a global function with example usage: test_output_logger_captured(caplog) without return types