code: def test_logging_debug_with_datetime(caplog, dt):
      with caplog.at_level(logging.DEBUG, logger="dvc"):
          logger.warning("WARNING")
          logger.debug("DEBUG")
          logger.trace("TRACE")
          logger.error("ERROR")
  
          for record in caplog.records:
              assert dt in formatter.format(record)
              assert record.levelname == record.message
  
imports: import logging
  import time
  import traceback
  from datetime import datetime
  import colorama
  import pytest
  import dvc.logger
  from dvc.exceptions import DvcException
label_desc: Use image node_id 3 for calling a global function with example usage: test_logging_debug_with_datetime(caplog, dt) without return types