code: def setupUi(self, QSpectrumAnalyzerSmoothing):
      QSpectrumAnalyzerSmoothing.setObjectName(
          "QSpectrumAnalyzerSmoothing"
      )
      QSpectrumAnalyzerSmoothing.resize(250, 130)
      self.verticalLayout = QtWidgets.QVBoxLayout(
          QSpectrumAnalyzerSmoothing
      )
      self.verticalLayout.setObjectName("verticalLayout")
      self.formLayout = QtWidgets.QFormLayout()
      self.formLayout.setObjectName("formLayout")
      self.label = QtWidgets.QLabel(QSpectrumAnalyzerSmoothing)
      self.label.setObjectName("label")
      self.formLayout.setWidget(
          0, QtWidgets.QFormLayout.LabelRole, self.label
      )
      self.windowFunctionComboBox = QtWidgets.QComboBox(
          QSpectrumAnalyzerSmoothing
      )
      self.windowFunctionComboBox.setObjectName(
          "windowFunctionComboBox"
      )
      self.windowFunctionComboBox.addItem("")
      self.windowFunctionComboBox.addItem("")
      self.windowFunctionComboBox.addItem("")
      self.windowFunctionComboBox.addItem("")
      self.windowFunctionComboBox.addItem("")
      self.formLayout.setWidget(
          0,
          QtWidgets.QFormLayout.FieldRole,
          self.windowFunctionComboBox,
      )
      self.label_2 = QtWidgets.QLabel(QSpectrumAnalyzerSmoothing)
      self.label_2.setObjectName("label_2")
      self.formLayout.setWidget(
          1, QtWidgets.QFormLayout.LabelRole, self.label_2
      )
      self.windowLengthSpinBox = QtWidgets.QSpinBox(
          QSpectrumAnalyzerSmoothing
      )
      self.windowLengthSpinBox.setMinimum(3)
      self.windowLengthSpinBox.setMaximum(1001)
      self.windowLengthSpinBox.setProperty("value", 11)
      self.windowLengthSpinBox.setObjectName("windowLengthSpinBox")
      self.formLayout.setWidget(
          1, QtWidgets.QFormLayout.FieldRole, self.windowLengthSpinBox
      )
      self.verticalLayout.addLayout(self.formLayout)
      spacerItem = QtWidgets.QSpacerItem(
          20,
          1,
          QtWidgets.QSizePolicy.Minimum,
          QtWidgets.QSizePolicy.Expanding,
      )
      self.verticalLayout.addItem(spacerItem)
      self.buttonBox = QtWidgets.QDialogButtonBox(
          QSpectrumAnalyzerSmoothing
      )
      self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
      self.buttonBox.setStandardButtons(
          QtWidgets.QDialogButtonBox.Cancel
          | QtWidgets.QDialogButtonBox.Ok
      )
      self.buttonBox.setObjectName("buttonBox")
      self.verticalLayout.addWidget(self.buttonBox)
      self.label.setBuddy(self.windowFunctionComboBox)
      self.label_2.setBuddy(self.windowLengthSpinBox)
  
      self.retranslateUi(QSpectrumAnalyzerSmoothing)
      self.windowFunctionComboBox.setCurrentIndex(1)
      self.buttonBox.accepted.connect(QSpectrumAnalyzerSmoothing.accept)
      self.buttonBox.rejected.connect(QSpectrumAnalyzerSmoothing.reject)
      QtCore.QMetaObject.connectSlotsByName(QSpectrumAnalyzerSmoothing)
      QSpectrumAnalyzerSmoothing.setTabOrder(
          self.windowFunctionComboBox, self.windowLengthSpinBox
      )
      QSpectrumAnalyzerSmoothing.setTabOrder(
          self.windowLengthSpinBox, self.buttonBox
      )
  
imports: from Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 1 for calling the Ui_QSpectrumAnalyzerSmoothing obj's underlying member method code with example usage: obj.setupUi(QSpectrumAnalyzerSmoothing) without return types