code: def test_init():
      """test init"""
  
      def check_init(kv, key):
          kv.init(key, mx.nd.ones(shape) * 4)
          a = mx.nd.zeros(shape)
          kv.pull(key, out=a)
          check_diff_to_scalar(a, 4)
  
      check_init(mx.kv.create(), 3)
      check_init(mx.kv.create(), "a")
  
imports: import mxnet
  import numpy
  import unittest
  from mxnet.test_utils import rand_ndarray, assert_almost_equal
  from common import assertRaises
  from mxnet.base import py_str, MXNetError
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_init() without return types