def find_argmax(topics_list):
    """ returns the maximum probability topic id in a 
    [(topic_id, topic_prob)...] topics distribution """
    m = -1.
    r_tid = -1
    for tid, tprob in topics_list:
        if tprob > m:
            m = tprob
            r_tid = tid
    return r_tid