code: def save_intermediate_result(self, jid, score):
      self.cursor.execute(
          """
              INSERT INTO intermediate_result (num, jid, score, receive_time) 
              VALUES ((SELECT CASE EXISTS(SELECT num FROM intermediate_result ir WHERE ir.jid=?) 
                          WHEN 0 THEN -1 
                          WHEN 1 THEN (SELECT num FROM intermediate_result ir WHERE ir.jid=? ORDER BY num DESC LIMIT 1) END) + 1,
                      ?, ?, strftime('%s', 'now'))""",
          (jid, jid, jid, score),
      )
      self.connector.commit()
      return self.cursor.lastrowid
  
imports: import logging
  import re
  import sqlite3
  import threading
  from time import sleep
  import json
  from datetime import datetime
  from .AbstractConnector import AbstractConnector
label_desc: Use image node_id 25 for calling the SQLiteConnector obj's underlying member method code with example usage: obj.save_intermediate_result(jid, score) and returns: self