code: def _ensure_dvc_gitignore(run_dir, resolved_repo_paths):
      gitignore_path = os.path.join(run_dir, ".dvc", ".gitignore")
      if os.path.exists(gitignore_path):
          return
      util.touch(gitignore_path)
      resolved_repo_paths.append(gitignore_path)
  
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 28 for calling a global function with example usage: _ensure_dvc_gitignore(run_dir, resolved_repo_paths) without return types