code: def patchFile(inPath, outPath):
      data = fileContents(inPath)
      data = data.replace("$FULL_VERSION", getFullVersion())
      data = data.replace("$VERSION", getVersion())
      data = data.replace(
          "$MACOSX_DEPLOYMENT_TARGET", "".join((DEPTARGET, " or later"))
      )
      data = data.replace(
          "$ARCHITECTURES",
          ", ".join(universal_opts_map[UNIVERSALARCHS]),
      )
      data = data.replace("$INSTALL_SIZE", installSize())
      data = data.replace(
          "$THIRD_PARTY_LIBS", "\\\n".join(THIRD_PARTY_LIBS)
      )
  
      # This one is not handy as a template variable
      data = data.replace(
          "$PYTHONFRAMEWORKINSTALLDIR",
          "/Library/Frameworks/Python.framework",
      )
      fp = open(outPath, "w")
      fp.write(data)
      fp.close()
  
imports: import platform, os, sys, getopt, textwrap, shutil, stat, time, pwd, grp
label_desc: Use image node_id 30 for calling a global function with example usage: patchFile(inPath, outPath) without return types