code: def patchScript(inPath, outPath):
      major, minor = getVersionMajorMinor()
      data = fileContents(inPath)
      data = data.replace("@PYMAJOR@", str(major))
      data = data.replace("@PYVER@", getVersion())
      fp = open(outPath, "w")
      fp.write(data)
      fp.close()
      os.chmod(outPath, STAT_0o755)
  
imports: import platform, os, sys, getopt, textwrap, shutil, stat, time, pwd, grp
label_desc: Use image node_id 31 for calling a global function with example usage: patchScript(inPath, outPath) without return types