docstr: undo一步点击
docstr_tok: ["undo\u4e00\u6b65\u70b9\u51fb"]
code: def undoClick(self):
      """
      undo一步点击
      """
      if len(self.states) <= 1:  # == 1就只剩下一个空状态了，不用再退
          return
      self.undo_states.append(self.states.pop())
      self.clicker.set_state(self.states[-1]["clicker"])
      self.predictor.set_states(self.states[-1]["predictor"])
      self.undo_probs_history.append(self.probs_history.pop())
      if not self.probs_history:
          self.reset_init_mask()
  
imports: import json
  import logging
  import os.path
  import time
  import cv2
  import numpy
  import paddle
  from skimage.measure import label
  import util
  from eiseg import logger
  from inference import clicker
  from inference.predictor import get_predictor
  from eiseg.models import EISegModel
  from util import LabelList
  from util.vis import draw_with_blend_and_clicks
label_desc: Use image node_id 12 for calling the InteractiveController obj's underlying member method code with example usage: obj.undoClick() without return types