code: def _apply_env_to_path(path):
      """Replaces occurrences of ${NAME} with env values."""
      return util.resolve_refs(path, os.environ)
  
imports: import difflib
  import glob
  import logging
  import os
  import re
  from guild import util
label_desc: Use image node_id 5 for calling a global function with example usage: _apply_env_to_path(path) and returns: util