code: def create_exe(self, arcname, fullname, bitmap=None):
      import struct
  
      self.mkpath(self.dist_dir)
  
      cfgdata = self.get_inidata()
  
      installer_name = self.get_installer_filename(fullname)
      self.announce("creating %s" % installer_name)
  
      if bitmap:
          bitmapdata = open(bitmap, "rb").read()
          bitmaplen = len(bitmapdata)
      else:
          bitmaplen = 0
  
      file = open(installer_name, "wb")
      file.write(self.get_exe_bytes())
      if bitmap:
          file.write(bitmapdata)
  
      # Convert cfgdata from unicode to ascii, mbcs encoded
      try:
          unicode
      except NameError:
          pass
      else:
          if isinstance(cfgdata, unicode):
              cfgdata = cfgdata.encode("mbcs")
  
      # Append the pre-install script
      cfgdata = cfgdata + "\0"
      if self.pre_install_script:
          script_data = open(self.pre_install_script, "r").read()
          cfgdata = cfgdata + script_data + "\n\0"
      else:
          # empty pre-install script
          cfgdata = cfgdata + "\0"
      file.write(cfgdata)
  
      # The 'magic number' 0x1234567B is used to make sure that the
      # binary layout of 'cfgdata' is what the wininst.exe binary
      # expects.  If the layout changes, increment that number, make
      # the corresponding changes to the wininst.exe sources, and
      # recompile them.
      header = struct.pack(
          "<iii",
          0x1234567B,  # tag
          len(cfgdata),  # length
          bitmaplen,  # number of bytes in bitmap
      )
      file.write(header)
      file.write(open(arcname, "rb").read())
  
file_path: magnitude/pymagnitude/third_party/_pysqlite/cross_bdist_wininst.py
imports: import sys, os, string
  from distutils.core import Command
  from distutils.util import get_platform
  from distutils.dir_util import create_tree, remove_tree
  from distutils.errors import *
  from distutils.sysconfig import get_python_version
  from distutils import log
label_desc: Use image node_id 5 for calling the bdist_wininst obj's underlying member method code with example usage: obj.create_exe(arcname, fullname, bitmap) without return types