def METHOD_NAME(segbits, tag_groups):
    """
    For each tag group finds a common set of bits that have value of one.
    """
    bit_groups = []
    for tag_group in tag_groups:
        bit_group = set()
        for tag, bits in segbits.items():
            if tag in tag_group:
                ones = set([b for b in bits if b[2]])
                bit_group |= ones
        bit_groups.append(bit_group)
    return bit_groups