human
I wrote the below code

    import MySQLdb.cursors
    import traceback
    old_mysql_do_query = MySQLdb.cursors.BaseCursor._do_query
    def _do_query(self, q):
        stack = ''
        for (file, line, method, function) in traceback.extract_stack():
            if (file.endswith('session.py') and (method == '_do_query')):
                continue
            if (file.endswith('api.py') and (method == 'wrapper')):
                continue
            if (file.endswith('utils.py') and (method == '_inner')):
                continue
            if (file.endswith('exception.py') and (method == '_wrap')):
                continue
            if file.endswith('db/api.py'):
                continue
            index = file.rfind('nova')
            if (index == (-1)):
                continue
            stack += ('File:%s:%s    Method:%s()    Line:%s    |    ' % (file[index:], line, method, function))
        if stack:
            stack = stack[:(-3)]
            qq = ('%s    /*    %s    */' % (q, stack))
        else:
            qq = q
        old_mysql_do_query(self, qq)
    setattr(MySQLdb.cursors.BaseCursor, '_do_query', _do_query)

What's a good function header?
 ... Here's a good function header?
assistant
#Here's a good function header.

def patch_mysqldb_with_stacktrace_comments():