def get_checkbox_choices(self, doc):
        from pyquery import PyQuery as pq
        
        d = pq(doc, parser="html")
        inputs = d("input")
        result = {}
        
        for i in range(0,len(inputs)):
            if inputs.eq(i).attr.type=="checkbox":
                choice = str(inputs.eq(i)).split(">")[1].lstrip()
                result[choice] = inputs.eq(i).attr.name
        
        return result
Convert n-ary case statements to a binary case statement.
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/tests/client.py/Browser.get_checkbox_choices--crossover with--dataset/ETHPy150Open uwescience/raco/raco/expression/expression.py/Case.to_binary