code: def _ensure_shared_dvc_cache(
      run_dir, project_dir, resolved_repo_paths
  ):
      dest = os.path.join(run_dir, ".dvc", "cache")
      if os.path.exists(dest):
          return
      src = os.path.join(project_dir, ".dvc", "cache")
      if os.path.exists(src):
          util.symlink(src, dest)
      else:
          util.ensure_dir(os.path.dirname(dest))
          util.ensure_dir(dest)
      resolved_repo_paths.append(dest)
  
imports: import json
  import logging
  import os
  import subprocess
  import yaml
  from guild import util
  from guild import var
label_desc: Use image node_id 26 for calling a global function with example usage: _ensure_shared_dvc_cache(run_dir, project_dir, resolved_repo_paths) without return types