code: def test_resolve_paths():
      p = os.path.join("dir", "subdir")
      file_path = os.path.join(p, "dvc.yaml")
  
      path, wdir = resolve_paths(fs=localfs, path=file_path, wdir="dir")
      assert path == os.path.abspath(file_path)
      assert wdir == os.path.abspath(os.path.join(p, "dir"))
  
      path, wdir = resolve_paths(fs=localfs, path=file_path)
      assert path == os.path.abspath(file_path)
      assert wdir == os.path.abspath(p)
  
      path, wdir = resolve_paths(
          fs=localfs, path=file_path, wdir="../../some-dir"
      )
      assert path == os.path.abspath(file_path)
      assert wdir == os.path.abspath("some-dir")
  
imports: import os
  from dvc.fs import localfs
  from dvc.stage.utils import _get_stage_files, resolve_paths
label_desc: Use image node_id 1 for calling a global function with example usage: test_resolve_paths() without return types