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_commit()
    finally:
        con.close()