code: def get_builtin_image(name):
      import wx
  
      # We can't make wx.Image objects without a wx.App object existing somewhere. There should always be a GUI to get
      # here, but the build system needs to scan CellProfiler without one and it can't if there's no app.
      # So here we generate a "fake" app that the build scripts can use.
      global app
      if not wx.App.Get() and app is None:
          app = wx.App()
  
      try:
          return image_cache[name]
      except KeyError:
          pathname = os.path.join(resources, name + ".png")
  
          image_cache[name] = image = wx.Image(pathname)
  
          return image
  
imports: import os.path
  import weakref
  import pkg_resources
label_desc: Use image node_id 1 for calling a global function with example usage: get_builtin_image(name) and returns: image_cache, image