code: def _manual_substitution(
      line: str, replacements: dict[str, str]
  ) -> str:
      for value, repl in replacements.items():
          line = line.replace(f"|{value}|", repl)
      return line
  
imports: from __future__ import annotations
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: _manual_substitution(line, replacements) and returns: line