code: def test_resolve_home_directory():
      uri = "~/myfile.parquet"
      fs, path = filesystem.resolve_filesystem_and_path(uri)
      assert isinstance(fs, filesystem.LocalFileSystem)
      assert path == os.path.expanduser(uri)
  
      local_fs = filesystem.LocalFileSystem()
      fs, path = filesystem.resolve_filesystem_and_path(uri, local_fs)
      assert path == os.path.expanduser(uri)
  
file_path: arrow/python/pyarrow/tests/test_filesystem.py
imports: import pyarrow
  from pyarrow import filesystem
  import os
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_resolve_home_directory() without return types