def METHOD_NAME(self, cmd):
    self.save_screenshot()
    pyautogui.hotkey("ctrl", "space")
    pyautogui.typewrite(cmd)
    self.save_screenshot()
    pyautogui.press("enter")
    pyautogui.press("escape")