code: def test_unresolve_path(
      path: str,
      revision: Optional[str],
      expected_path: str,
      path_in_repo: str,
  ) -> None:
      fs = HfFileSystem()
      path = path + "/" + path_in_repo if path_in_repo else path
      expected_path = (
          expected_path + "/" + path_in_repo
          if path_in_repo
          else expected_path
      )
  
      with mock_repo_info(fs):
          assert (
              fs.resolve_path(path, revision=revision).unresolve()
              == expected_path
          )
  
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 2 for calling a global function with example usage: test_unresolve_path(path, revision, expected_path, path_in_repo) without return types