code: def reset(config):
      """Close on-going jobs/experiment and reset resources without deleting existing results:
  
      :param config: contains ``SQLITE_FILE`` under ``Auptimizer`` section
      :type config: configparser.ConfigParser
      """
  
      conn = _create_connection(config.get("Auptimizer", "SQLITE_FILE"))
      c = conn.cursor()
  
      c.execute(
          "UPDATE experiment SET end_time=strftime('%s','now') WHERE end_time ISNULL;"
      )
      c.execute(
          "UPDATE job SET score=-999, end_time=strftime('%s','now') WHERE end_time ISNULL;"
      )
      c.execute(
          "UPDATE resource SET status='free' WHERE status='busy';"
      )
      conn.commit()
      conn.close()
  
file_path: auptimizer/src/aup/setupdb/sqlite.py
imports: import sqlite3
  import os
  import click
  import json
  import logging
  import coloredlogs
  from ..utils import get_default_username, LOG_LEVEL
  from six.moves.configparser import ConfigParser
label_desc: Use image node_id 4 for calling a global function with example usage: reset(config) without return types