code: def dispatch_hook(cls, _pkt=None, *args, **kargs):
          
  
          if _pkt:
              attr_type = orb(_pkt[0])
              return cls.registered_attributes.get(attr_type, cls)
          return cls
docs: Returns the right RadiusAttribute class for the given data.