'Initializes a single or a sequence of key-value pairs into the store.
For each key, one must `init` it before calling `push` or `pull`.
When multiple workers invoke `init` for the same key, only
the value supplied by worker with rank `0` is used. This function returns
after data has been initialized successfully.
Parameters
key : str or sequence of str
The keys.
value : NDArray or sequence of NDArray
Values corresponding to the keys.
Examples
>>> # init a single key-value pair
>>> shape = (2,3)
>>> kv = mx.kv.create(\'local\')
>>> kv.init(\'3\', mx.nd.ones(shape)*2)
>>> a = mx.nd.zeros(shape)
>>> kv.pull(\'3\', out=a)
>>> print a.asnumpy()
[[ 2.  2.  2.]
[ 2.  2.  2.]]
>>> # init a list of key-value pairs
>>> keys = [\'5\', \'7\', \'9\']
>>> kv.init(keys, [mx.nd.ones(shape)]*len(keys))'

def init(self, key, value):

    (ckeys, cvals) = _ctype_key_value(key, value)
    check_call(_LIB.MXKVStoreInitEx(self.handle, mx_uint(len(ckeys)), ckeys, cvals))
