code: def create_text(parent, text_name=None, text_text=None):
      text = QtWidgets.QLabel(parent)
      if text_name is not None:
          text.setObjectName(text_name)
      if text_text is not None:
          text.setText(text_text)
      return text
  
file_path: PaddleSeg/EISeg/eiseg/widget/create.py
imports: from qtpy.QtWidgets import QDockWidget
  from qtpy import QtCore, QtGui, QtWidgets
  from qtpy.QtCore import Qt
label_desc: Use image node_id 1 for calling a global function with example usage: create_text(parent, text_name, text_text) and returns: text