code: def check_i_islarger(i, last_i):
      if i == 1:
          last_i[0] = 0
      islarger = (i >= last_i[0]) and (i - last_i[0] <= 1)
      last_i[0] = i
      return islarger
  
label_desc: Use image node_id 1 for calling a global function with example usage: check_i_islarger(i, last_i) and returns: islarger