def __getitem__(self, key):
        if [Struct, Variant] in type(self.payload_type):
            return self.payload_type[key]

        raise TypeError('{} is not subscriptable')
dataset/ETHPy150Open efficios/barectf/barectf/metadata.py/Event.__getitem__/swapped operands of `in`