docstr: Test if snapshots directory is missing in cached repo.
docstr_tok: ["Test","if","snapshots","directory","is","missing","in","cached","repo","."]
code: def test_snapshots_path_not_found(self) -> None:
      """Test if snapshots directory is missing in cached repo."""
      rmtree_with_retry(self.snapshots_path)
  
      report = scan_cache_dir(self.cache_dir)
      self.assertEqual(len(report.repos), 0)  # Failed
  
      self.assertEqual(len(report.warnings), 1)
      self.assertEqual(
          str(report.warnings[0]),
          f"Snapshots dir doesn't exist in cached repo: {self.snapshots_path}",
      )
  
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 3 for calling the TestCorruptedCacheUtils obj's underlying member method code with example usage: obj.test_snapshots_path_not_found() without return types