docs: def get_encapsulated_payload_class(self):
          """
          get the class that holds the encapsulated payload of the TZSP packet
          :return: class representing the payload, Raw() on error
          """
  
          try:
              return TZSP.ENCAPSULATED_PROTOCOL_CLASSES[self.encapsulated_protocol]  # noqa: E501
          except KeyError:
              warning(
                  'unknown or invalid encapsulation type (%i) - returning payload as raw()' % self.encapsulated_protocol)  # noqa: E501
              return Raw