def METHOD_NAME(self, table_name, data):
    # Batch insert (Milvus_ids, img_path) to mysql
    self.test_connection()
    sql = "insert into " + table_name + " (milvus_id,question,answer) values (%s,%s,%s);"
    self.cursor.execute('SET character_set_connection=utf8;')
    try:
        self.cursor.executemany(sql, data)
        self.conn.commit()
        LOGGER.debug(f"MYSQL loads data to table: {table_name} successfully")
    except Exception as e:
        LOGGER.error(f"MYSQL ERROR: {e} with sql: {sql}")
        sys.exit(1)