code: def ensure_dvc_repo(run_dir, project_dir, resolved_repo_paths):
      _ensure_git_repo(run_dir, resolved_repo_paths)
      _ensure_dvc_config(run_dir, project_dir, resolved_repo_paths)
      _ensure_shared_dvc_cache(
          run_dir, project_dir, resolved_repo_paths
      )
      _ensure_dvc_internal_stubs(run_dir, resolved_repo_paths)
  
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 20 for calling a global function with example usage: ensure_dvc_repo(run_dir, project_dir, resolved_repo_paths) without return types