code: def creat_dock(parent, name, text, widget):
      dock = DockWidget(parent, name, text)
      dock.setMinimumWidth(300)  # Uniform size
      dock.setWidget(widget)
      return dock
  
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 5 for calling a global function with example usage: creat_dock(parent, name, text, widget) and returns: dock