def set_server_metadata(self, server, **metadata):
        res = self._get_base_resource(server, _server.Server)
        metadata = res.set_metadata(self.session, **metadata)
        result = _server.Server.existing(id=res.id, metadata=metadata)
        return result
Update metadata for a server
dataset/ETHPy150Open openstack/python-openstacksdk/openstack/compute/v2/_proxy.py/Proxy.set_server_metadata