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

        raise TypeError('{} is not subscriptable')
dataset/ETHPy150Open efficios/barectf/barectf/metadata.py/Event.__getitem__/original