def METHOD_NAME(fn, table):
    output = ""
    fd = open(fn,'r')
    for line in fd.xreadlines():
        line = line.split('#')[0].strip()
        if not line: continue
        (gpio,pa,pb) = line.split()
        num = int(gpio[2:])
        table[gpio+"_IN"] = (num, 0, 0, 1, 0, 0)
        table[gpio+"_IN_PULLUP"] = (num, 0, 1, 1, 0, 0)
        table[gpio+"_OUT"] = (num, 1, 0, 1, 0, 0)
        table[gpio+"_"+pa] = (num, 0, 0, 0, 1, 0)
        table[gpio+"_"+pb] = (num, 0, 0, 0, 0, 1)
    return output