def create_response(self, msgid, error=None, result=None):
        assert isinstance(msgid, int)
        assert 0 <= msgid and msgid <= 0xffffffff
        assert error is None or result is None
        return self._packer.pack([MessageType.RESPONSE, msgid, error, result])
dataset/ETHPy150Open osrg/ryu/ryu/lib/rpc.py/MessageEncoder.create_response/original