code: def test_weight_normalization_initializaer(shape, dim, eps):
      rng = np.random.RandomState(313)
  
      # Same w returns same results
      w = nn.Variable.from_numpy_array(rng.randn(*shape))
      initializer = I.WeightNormalizationScaleInitializer(w, dim, eps)
      ret0 = initializer(w.shape)
      ret1 = initializer(w.shape)
      np.testing.assert_allclose(ret0, ret1)
  
      # Different w return different results
      w = nn.Variable.from_numpy_array(rng.randn(*shape))
      initializer = I.WeightNormalizationScaleInitializer(w, dim, eps)
      ret1 = initializer(w.shape)
      assert np.any(ret0 != ret1)
  
imports: import pytest
  import numpy
  import nnabla
  import nnabla.initializer
label_desc: Use image node_id 2 for calling a global function with example usage: test_weight_normalization_initializaer(shape, dim, eps) without return types