code: def test_are_symlinks_supported_windows_specific_dir(
      self, mock_symlink: Mock
  ) -> None:
      mock_symlink.side_effect = [
          OSError(),
          None,
      ]  # First dir not supported then yes
      this_dir = Path(__file__).parent
  
      # First time in `this_dir`: warning is raised
      with self.assertWarns(UserWarning):
          self.assertFalse(are_symlinks_supported(this_dir))
  
      with warnings.catch_warnings():
          # Assert no warnings raised
          # Taken from https://stackoverflow.com/a/45671804
          warnings.simplefilter("error")
  
          # Second time in `this_dir` but with absolute path: value is still cached
          self.assertFalse(are_symlinks_supported(this_dir.absolute()))
  
          # Try with another directory: symlinks are supported, no warnings
          self.assertTrue(are_symlinks_supported())
  
file_path: hub-client/tests/test_cache_no_symlinks.py
imports: import unittest
  import warnings
  from pathlib import Path
  from unittest.mock import Mock, patch
  import pytest
  from huggingface_hub import hf_hub_download, scan_cache_dir
  from huggingface_hub.constants import CONFIG_NAME, HF_HUB_CACHE
  from huggingface_hub.file_download import are_symlinks_supported
  from .testing_constants import TOKEN
  from .testing_utils import DUMMY_MODEL_ID, with_production_testing
label_desc: Use image node_id 2 for calling the TestCacheLayoutIfSymlinksNotSupported obj's underlying member method code with example usage: obj.test_are_symlinks_supported_windows_specific_dir(mock_symlink) without return types