    def _insert(self, query_sql: str, insert_sql: str) -> None:
        """a function to insert op into cache

        Parameters
        ----------
        query_sql : str
            cache query sql
        insert_sql: str
            cache insert sql
        """
        if self._mode == CacheMode.LOCAL:
            self._cur.execute(query_sql)
            out = self._cur.fetchall()
            if len(out) == 0:
                self._cur.execute(insert_sql)
                self._db_commit_flag = True
            else:
                _LOGGER.info("Ignore repeat profile_record: " + query_sql)
a function to insert op into cache

Parameters
----------
query_sql : str
cache query sql
insert_sql: str
cache insert sql
python/aitemplate/backend/profiler_cache.py