def METHOD_NAME(cls, _pkt=None, *args, **kargs):
    if _pkt and len(_pkt) >= 4:
        from scapy.contrib.igmpv3 import IGMPv3
        if orb(_pkt[0]) in [0x22, 0x30, 0x31, 0x32]:
            return IGMPv3
        if orb(_pkt[0]) == 0x11 and len(_pkt) >= 12:
            return IGMPv3
    return IGMP