code: def get_icon(name, as_qicon=False):
      
      filename = name + ".png"
      icon = icons.get(filename)
      if not icon:
          path = os.path.dirname(__file__)
          path = os.path.join(path, "icons")
          filepath = os.path.join(path, filename)
          if not os.path.exists(filepath):
              filepath = os.path.join(path, "pink.png")
  
          icon = QtGui.QPixmap(filepath)
          icons[filename] = icon
  
      return QtGui.QIcon(icon) if as_qicon else icon
docs: Returns a `QPixmap` containing the given image, or a QIcon if `as_qicon`
      is True