code: def disable_symlinks_on_windows_ci(
      monkeypatch: pytest.MonkeyPatch,
  ) -> None:
      class FakeSymlinkDict(dict):
          def __contains__(self, __o: object) -> bool:
              return (
                  True  # consider any `cache_dir` to be already checked
              )
  
          def __getitem__(self, __key: str) -> bool:
              return False  # symlinks are never supported
  
      if os.name == "nt" and os.environ.get(
          "DISABLE_SYMLINKS_IN_WINDOWS_TESTS"
      ):
          monkeypatch.setattr(
              huggingface_hub.file_download,
              "_are_symlinks_supported_in_dir",
              FakeSymlinkDict(),
          )
  
file_path: hub-client/tests/conftest.py
imports: import os
  import shutil
  from pathlib import Path
  from typing import Generator
  import pytest
  from _pytest.fixtures import SubRequest
  import huggingface_hub
  from huggingface_hub.utils import SoftTemporaryDirectory, logging
  from .testing_utils import set_write_permission_and_retry
label_desc: Use image node_id 2 for calling a global function with example usage: disable_symlinks_on_windows_ci(monkeypatch) and returns: True, False