code: def test_debug(self, caplog, dt):
      with caplog.at_level(logging.DEBUG, logger="dvc"):
          logger.debug("message")
  
          expected = (
              "{blue}{datetime}{nc} {blue}DEBUG{nc}: message".format(
                  **colors, datetime=dt
              )
          )
  
          assert expected == formatter.format(caplog.records[0])
  
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 1 for calling the TestColorFormatter obj's underlying member method code with example usage: obj.test_debug(caplog, dt) without return types