code: def textItem(text):
      """Return a tree item with no associated stack frame and a darker background color"""
      item = QtWidgets.QTreeWidgetItem([text])
      item.frame = None
      item.setBackground(0, QtGui.QBrush(QtGui.QColor(220, 220, 220)))
      item.setForeground(0, QtGui.QBrush(QtGui.QColor(0, 0, 0)))
      item.setChildIndicatorPolicy(
          item.ChildIndicatorPolicy.DontShowIndicator
      )
      return item
  
file_path: pyqtgraph/pyqtgraph/console/stackwidget.py
imports: import sys, traceback
  from ..Qt import QtWidgets, QtGui
label_desc: Use image node_id 5 for calling a global function with example usage: textItem(text) and returns: item