code: def put_data_into_kvstore(addr, port, scope, key, value):
      try:
          url = "http://{addr}:{port}/{scope}/{key}".format(
              addr=addr, port=str(port), scope=scope, key=key
          )
          req = Request(
              url, data=codec.dumps_base64(value, to_ascii=False)
          )
          req.get_method = lambda: "PUT"  # for urllib2 compatibility
          urlopen(req)
      except (HTTPError, URLError) as e:
          raise RuntimeError("Put data input KVStore server failed.", e)
  
imports: from urllib.error import HTTPError, URLError
  from urllib.request import Request
  from urllib.request import urlopen
  from horovod.runner.common.util import codec
label_desc: Use image node_id 2 for calling a global function with example usage: put_data_into_kvstore(addr, port, scope, key, value) without return types