def IE_Dispatcher(s):

  if len(s) < 1:
    return Raw(s)

  # Get the IE type
  ietype = ord(s[0])
  cls = ietypecls.get(ietype, Raw)

  # if ietype greater than 128 are TLVs
  if cls == Raw and ietype & 128 == 128:
    cls = IE_NotImplementedTLV

  return cls(s)
Choose the correct Information Element class.
dataset/ETHPy150Open phaethon/scapy/scapy/contrib/gtp.py/IE_Dispatcher