def METHOD_NAME(self):
    con = self.connect()
    try:
        xid = self.make_xid(con)
        con.tpc_begin(xid)
        cursor = con.cursor()
        cursor.execute("SELECT 1")
        con.tpc_prepare()
        con.tpc_rollback()
    finally:
        con.close()