def items_from_nbt(nbtlist):
    items = {}  # block_id -> count
    for item in nbtlist:
        id = item['id'].value
        count = item['Count'].value
        if items not in id:
            items[id] = 0
        items[id] += count
    return items
dataset/ETHPy150Open twoolie/NBT/examples/chest_analysis.py/items_from_nbt/swapped operands of `not in`