def METHOD_NAME(self, connection, level):
    if level == 'AUTOCOMMIT':
        connection.autocommit = True
    else:
        connection.autocommit = False
        super(MySQLDialect_mysqlconnector, self).METHOD_NAME(
            connection, level)