code: def test_progress_awareness(self, mocker, capsys, caplog):
      from dvc.progress import Tqdm
  
      mocker.patch("sys.stdout.isatty", return_value=True)
      with Tqdm(total=100, desc="progress") as pbar:
          pbar.update()
  
          # logging an invisible message should not break
          # the progress bar output
          with caplog.at_level(logging.INFO, logger="dvc"):
              debug_record = logging.LogRecord(
                  name="dvc",
                  level=logging.DEBUG,
                  pathname=__name__,
                  lineno=1,
                  msg="debug",
                  args=(),
                  exc_info=None,
              )
  
              formatter.format(debug_record)
              captured = capsys.readouterr()
              assert not captured.out
  
          #  when the message is actually visible
          with caplog.at_level(logging.INFO, logger="dvc"):
              logger.info("some info")
              captured = capsys.readouterr()
              assert not captured.out
  
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 12 for calling the TestColorFormatter obj's underlying member method code with example usage: obj.test_progress_awareness(mocker, capsys, caplog) without return types