code: def _ensure_dvc_config(run_dir, project_dir, resolved_repo_paths):
      if os.path.exists(os.path.join(run_dir, ".dvc", "config")):
          return
      try:
          util.try_apply(
              [_try_copy_dvc_config, _try_copy_dvc_config_in],
              project_dir,
              run_dir,
              resolved_repo_paths,
          )
      except util.TryFailed:
          _no_dvc_config_resolution_error(project_dir)
  
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 22 for calling a global function with example usage: _ensure_dvc_config(run_dir, project_dir, resolved_repo_paths) without return types