code: def execCmd(self):
      cmd = self.text()
      if len(self.history) == 1 or cmd != self.history[1]:
          self.history.insert(1, cmd)
      self.history[0] = ""
      self.setHistory(0)
      self.sigExecuteCmd.emit(cmd)
  
file_path: pyqtgraph/pyqtgraph/console/CmdInput.py
imports: from ..Qt import QtCore, QtWidgets
label_desc: Use image node_id 4 for calling the CmdInput obj's underlying member method code with example usage: obj.execCmd() without return types