code: def make_id(path):
      return re.sub(
          r"[^A-Za-z0-9_.]",
          lambda m: ID_CHAR_SUBS.get(m.group(0), "_"),
          str(path).rstrip("/\\"),
          flags=re.I,
      )
  
file_path: cpython/Tools/msi/csv_to_wxs.py
imports: import csv
  import re
  import sys
  from collections import defaultdict
  from itertools import chain, zip_longest
  from pathlib import PureWindowsPath
  from uuid import uuid1
label_desc: Use image node_id 1 for calling a global function with example usage: make_id(path) and returns: re