code: def get_protocols(self, protocol):
          
          if isinstance(protocol, packet_base.PacketBase):
              protocol = protocol.__class__
          assert issubclass(protocol, packet_base.PacketBase)
          return [p for p in self.protocols if isinstance(p, protocol)]
docs: Returns a list of protocols that matches to the specified protocol.