code: def dispatch_hook(cls, _pkt, _underlayer=None, *args, **kargs):
          
          for klass in cls._payload_class:
              if hasattr(klass, "can_handle") and \
                      klass.can_handle(_pkt, _underlayer):
                  return klass
          print("DCE/RPC payload class not found or undefined (using Raw)")
          return Raw
docs: dispatch_hook to choose among different registered payloads