code: def create_button(
      parent, btn_name, btn_text, ico_path=None, curt=None
  ):
      # 创建和设置按钮
      sizePolicy = QtWidgets.QSizePolicy(
          QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed
      )
      min_size = QtCore.QSize(0, 40)
      sizePolicy.setHorizontalStretch(0)
      sizePolicy.setVerticalStretch(0)
      btn = QtWidgets.QPushButton(parent)
      sizePolicy.setHeightForWidth(btn.sizePolicy().hasHeightForWidth())
      btn.setSizePolicy(sizePolicy)
      btn.setMinimumSize(min_size)
      btn.setObjectName(btn_name)
      if ico_path is not None:
          btn.setIcon(QtGui.QIcon(ico_path))
      btn.setText(btn_text)
      if curt is not None:
          btn.setShortcut(curt)
      return btn
  
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 3 for calling a global function with example usage: create_button(parent, btn_name, btn_text, ico_path, curt) and returns: btn