code: def newIcon(icon, iconSize=None):
      if iconSize is not None:
          return QIcon(
              QIcon(__iconpath__ + "/" + icon + ".png").pixmap(
                  iconSize, iconSize
              )
          )
      else:
          return QIcon(__iconpath__ + "/" + icon + ".png")
  
imports: import hashlib
  import os
  import re
  import sys
  from math import sqrt
  import cv2
  import numpy
  from PyQt5.QtCore import QRegExp, QT_VERSION_STR
  from PyQt5.QtGui import QIcon, QRegExpValidator, QColor
  from PyQt5.QtWidgets import QPushButton, QAction, QMenu
  from libs.ustr import ustr
label_desc: Use image node_id 1 for calling a global function with example usage: newIcon(icon, iconSize) and returns: QIcon, QIcon