code: def generateColorByText(text):
      s = ustr(text)
      hashCode = int(hashlib.sha256(s.encode("utf-8")).hexdigest(), 16)
      r = int((hashCode / 255) % 255)
      g = int((hashCode / 65025) % 255)
      b = int((hashCode / 16581375) % 255)
      return QColor(r, g, b, 100)
  
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 8 for calling a global function with example usage: generateColorByText(text) and returns: QColor