docstr: Setup a clean cache for tests that will get corrupted/modified in tests.
docstr_tok: ["Setup","a","clean","cache","for","tests","that","will","get","corrupted\/modified","in","tests","."]
code: def setUp(self) -> None:
      """Setup a clean cache for tests that will get corrupted/modified in tests."""
      # Download latest main
      snapshot_download(
          repo_id=MODEL_ID,
          repo_type="model",
          cache_dir=self.cache_dir,
          use_auth_token=TOKEN,
      )
  
      self.repo_path = self.cache_dir / MODEL_PATH
      self.refs_path = self.repo_path / "refs"
      self.snapshots_path = self.repo_path / "snapshots"
  
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 1 for calling the TestCorruptedCacheUtils obj's underlying member method code with example usage: obj.setUp() without return types