code: def add_application(
      ns,
      xml,
      appid,
      executable,
      aliases,
      visual_element,
      subsystem,
      file_types,
  ):
      node = xml.find("m:Applications", APPXMANIFEST_NS)
      suffix = "_d.exe" if ns.debug else ".exe"
      app = ET.SubElement(
          node,
          ET.QName(APPXMANIFEST_NS[""], "Application"),
          {
              "Id": appid,
              "Executable": executable + suffix,
              "EntryPoint": "Windows.FullTrustApplication",
              ET.QName(
                  APPXMANIFEST_NS["desktop4"],
                  "SupportsMultipleInstances",
              ): "true",
          },
      )
      if visual_element:
          add_visual(app, None, visual_element)
      for alias in aliases:
          add_alias(app, None, alias + suffix, subsystem)
      if file_types:
          add_file_type(app, None, *file_types)
      return app
  
file_path: cpython/PC/layout/support/appxmanifest.py
imports: import ctypes
  import io
  import os
  from pathlib import PureWindowsPath
  from xml.etree import ElementTree
  from .constants import *
label_desc: Use image node_id 8 for calling a global function with example usage: add_application(ns, xml, appid, executable, aliases, visual_element, subsystem, file_types) and returns: app