code: def test_output_logger(caplog):
      caplog.set_level(logging.INFO)
      with OutputLogger("log", "INFO"):
          print("test")
          assert (
              "test" in caplog.text
          ), "Print statement was not redirected to logging"
  
imports: import logging
  import pytest
  from data_describe.misc.logging import OutputLogger
label_desc: Use image node_id 1 for calling a global function with example usage: test_output_logger(caplog) without return types