def __contains__(self, item):
        try:
            self[item]
            return True
        except KeyError:
            return False
Checks if the layer is inside the packet.
dataset/ETHPy150Open KimiNewt/pyshark/src/pyshark/packet/packet.py/Packet.__contains__