code: def test_resolve_path_with_refs_revision() -> None:
      """
      Testing a very specific edge case where a user has a repo with a revisions named "refs" and a file/directory
      named "pr/10". We can still process them but the user has to use the `revision` argument to disambiguate between
      the two.
      """
      fs = HfFileSystem()
      with mock_repo_info(fs):
          resolved = fs.resolve_path(
              "hf://username/my_model@refs/pr/10", revision="refs"
          )
          assert resolved.revision == "refs"
          assert resolved.path_in_repo == "pr/10"
          assert resolved.unresolve() == "username/my_model@refs/pr/10"
  
imports: import datetime
  import unittest
  from typing import Optional
  from unittest.mock import patch
  import fsspec
  import pytest
  from huggingface_hub.hf_file_system import HfFileSystem
  from huggingface_hub.utils import RepositoryNotFoundError, RevisionNotFoundError
  from .testing_constants import ENDPOINT_STAGING, TOKEN
  from .testing_utils import repo_name
label_desc: Use image node_id 3 for calling a global function with example usage: test_resolve_path_with_refs_revision() without return types