code: def template(file: Path, replace: Dict[str, str]):
      with open(str(file), "r") as f:
          content = f.read()
          for k, v in replace.items():
              content = content.replace(f"%%{k.upper()}%%", v)
  
      return content
  
label_desc: Use image node_id 1 for calling a global function with example usage: template(file, replace) and returns: content