code: def _process(self, envelope, session, mode, **kwargs):
  		
  		if mode == WMessengerOnionPackerLayerProto.Mode.pack:
  			return self.pack(envelope, session, **kwargs)
  		else:  # mode == WMessengerOnionPackerLayerProto.Mode.unpack
  			return self.unpack(envelope, session, **kwargs)
docs: :meth:`.WMessengerOnionLayerProto.process` implementation