code: def test_resolve_homedir():
      # NOTE: our test suit patches $HOME, but that only works within the
      # test itself, so we can't use expanduser in @parametrize here.
      conf_dir = os.path.abspath("conf_dir")
      expected = os.path.expanduser(os.path.join("~", "cache"))
      assert Config._resolve(conf_dir, "~/cache") == expected
  
file_path: dvc/tests/unit/test_config.py
imports: import logging
  import os
  import textwrap
  import pytest
  from dvc.config import Config, ConfigError
  from dvc.fs import LocalFileSystem
label_desc: Use image node_id 3 for calling a global function with example usage: test_resolve_homedir() without return types