code: def test_cache_link_type(tmp_dir, scm, dvc):
      with dvc.config.edit() as conf:
          conf["cache"]["type"] = "reflink,copy"
      dvc.cache = CacheManager(dvc)
  
      stages = tmp_dir.dvc_gen({"foo": "foo"})
      assert len(stages) == 1
      assert (tmp_dir / "foo").read_text().strip() == "foo"
  
file_path: dvc/tests/func/test_odb.py
imports: import os
  import stat
  import configobj
  import pytest
  from dvc.cachemgr import CacheManager
  from dvc.cli import main
  from dvc.utils import relpath
  from dvc_data.hashfile.hash_info import HashInfo
  from dvc_objects.errors import ObjectFormatError
label_desc: Use image node_id 5 for calling a global function with example usage: test_cache_link_type(tmp_dir, scm, dvc) without return types