def _lookup(self, key):
        for field, _type in self.fields:
            if isinstance(key, _type):
                for item in self:
                    # The next 7 lines allow lookup keys such as 'champion.name'
                    attr = item
                    _field = field
                    while _field in '.':
                        _field, tail = _field.split('.', 1)
                        attr = getattr(attr, _field)
                        _field = tail
                    attr = getattr(attr, _field)
                    if key == attr:
                        return self[item]
        else:
            raise KeyError(key)
dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/common.py/LookupableDict._lookup/swapped operands of `in`