code: def createLabel(label, angle):
      symbol = QtGui.QPainterPath()
      # symbol.addText(0, 0, QFont("San Serif", 10), label)
      f = QtGui.QFont()
      f.setPointSize(10)
      symbol.addText(0, 0, f, label)
      br = symbol.boundingRect()
      scale = min(1.0 / br.width(), 1.0 / br.height())
      tr = QtGui.QTransform()
      tr.scale(scale, scale)
      tr.rotate(angle)
      tr.translate(
          -br.x() - br.width() / 2.0, -br.y() - br.height() / 2.0
      )
      return TextSymbol(label, tr.map(symbol), 0.1 / scale)
  
imports: from collections import namedtuple
  import numpy
  import pyqtgraph
  from pyqtgraph.Qt import QtGui, QtWidgets
label_desc: Use image node_id 2 for calling a global function with example usage: createLabel(label, angle) and returns: TextSymbol