def METHOD_NAME(lines):
    struct = {}
    for l in lines:
        elems = [ tryint(e) for e in re.split("\s*,\s*", l) if len(e) > 0 ]
        if len(elems) == 2:
            struct.update({ elems[0] : elems[1] })
        else:
            struct.update({ elems[0] : elems[1:] })
        #print("%%STRUCT: %s " % str(struct))
    return struct