code: def list_git_paths_with_tag(
      tag: str, ignore_files: List[str]
  ) -> List[str]:
      cmd = ["git", "rev-parse", "--show-toplevel"]
      r = subprocess.run(
          cmd,
          stdout=subprocess.PIPE,
          universal_newlines=True,
          check=True,
      )
  
      git_root = r.stdout.rstrip("\n")
  
      cmd = ["git", "grep", "-z", "-l", tag, git_root]
      r = subprocess.run(
          cmd,
          stdout=subprocess.PIPE,
          universal_newlines=True,
          check=True,
      )
      paths = r.stdout.rstrip("\0").split("\0")
  
      return [
          p
          for p in paths
          if not any(samefile(p, ignore) for ignore in ignore_files)
      ]
  
file_path: determined/tools/scripts/bumpenvs.py
imports: import os
  import subprocess
  import sys
  from typing import List
  from ruamel import yaml
label_desc: Use image node_id 2 for calling a global function with example usage: list_git_paths_with_tag(tag, ignore_files) and returns: unknown