code: def _insert_resource(config, res_name, cursor, name, type):
      if not config.has_option("Auptimizer", res_name):
          return
      for i in json.loads(config.get("Auptimizer", res_name)):
          cursor.execute(
              "INSERT INTO resource (rid, name, type, status) VALUES (?,?,?,?)",
              (i, name, type, "free"),
          )
  
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 2 for calling a global function with example usage: _insert_resource(config, res_name, cursor, name, type) without return types