code: def write_script(name: str, lines: list[str]) -> None:
      name = os.path.join(args.build_dir, name)
      lines = [line.format(**prefs) for line in lines]
      print("Writing " + name)
      with open(name, "w", newline="") as f:
          f.write(os.linesep.join(lines))
      if args.verbose:
          for line in lines:
              print("    " + line)
  
imports: from __future__ import annotations
  import argparse
  import os
  import platform
  import re
  import shutil
  import struct
  import subprocess
label_desc: Use image node_id 14 for calling a global function with example usage: write_script(name, lines) without return types