docstr: Test output from CLI scan cache with verbose output.
  
  End-to-end test just to see if output is in expected format.
docstr_tok: ["Test","output","from","CLI","scan","cache","with","verbose","output",".","End-to-end","test","just","to","see","if","output","is","in","expected","format","."]
code: def test_cli_scan_cache_verbose(self) -> None:
      """Test output from CLI scan cache with verbose output.
  
      End-to-end test just to see if output is in expected format.
      """
      args = Mock()
      args.verbose = 1
      args.dir = self.cache_dir
  
      with capture_output() as output:
          ScanCacheCommand(args).run()
  
      expected_output = f"""
          REPO ID                       REPO TYPE REVISION                                 SIZE ON DISK NB FILES LAST_MODIFIED     REFS      LOCAL PATH
          ----------------------------- --------- ---------------------------------------- ------------ -------- ----------------- --------- ------------------------------------------------------------------------------------------------------------
          {DATASET_ID} dataset   {REPO_B_MAIN_HASH}          2.3K        1 a few seconds ago main      {self.cache_dir}/{DATASET_PATH}/snapshots/{REPO_B_MAIN_HASH}
          {MODEL_ID}   model     {REPO_A_PR_1_HASH}          1.5K        3 a few seconds ago refs/pr/1 {self.cache_dir}/{MODEL_PATH}/snapshots/{REPO_A_PR_1_HASH}
          {MODEL_ID}   model     {REPO_A_MAIN_HASH}          1.5K        2 a few seconds ago main      {self.cache_dir}/{MODEL_PATH}/snapshots/{REPO_A_MAIN_HASH}
          {MODEL_ID}   model     {REPO_A_OTHER_HASH}         1.5K        1 a few seconds ago           {self.cache_dir}/{MODEL_PATH}/snapshots/{REPO_A_OTHER_HASH}
  
          Done in 0.0s. Scanned 2 repo(s) for a total of \x1b[1m\x1b[31m3.8K\x1b[0m.
          """
  
      self.assertListEqual(
          output.getvalue().replace("-", "").split(),
          expected_output.replace("-", "").split(),
      )
  
imports: import os
  import tempfile
  import time
  import unittest
  from pathlib import Path
  from unittest.mock import Mock
  import pytest
  from huggingface_hub._snapshot_download import snapshot_download
  from huggingface_hub.commands.scan_cache import ScanCacheCommand
  from huggingface_hub.utils import DeleteCacheStrategy, HFCacheInfo, capture_output, scan_cache_dir
  from huggingface_hub.utils._cache_manager import CacheNotFound, _format_size, _format_timesince, _try_delete_path
  from .testing_constants import TOKEN
  from .testing_utils import rmtree_with_retry, with_production_testing, xfail_on_windows
label_desc: Use image node_id 5 for calling the TestValidCacheUtils obj's underlying member method code with example usage: obj.test_cli_scan_cache_verbose() without return types