def _choice(self, bounds, fields):
        self._markers.append({'at':self.used_bits(),'type':'choice(%s,%s)'%(str(bounds),str(fields))})
        old_json = self._json
        self._json = {'bit_start': self.used_bits(), 'bounds': bounds, 'fields':fields}
        tag = self._int(bounds)
        if tag not in fields:
            return {"ERROR":"Choice '%s' does not exist in available fields '%s'" % (str(tag), str(fields))}
        field = fields[tag]
        retval = {field[0]: self.instance(field[1])}
        self._json['value'] = retval
        old_json[self.used_bits()%'choice%i'] = self._json
        self._json = old_json
        return retval
dataset/ETHPy150Open karlgluck/heroes-of-the-storm-replay-parser/s2protocol/decoders.py/BitPackedDecoderDebug._choice/swapped operands of `%`