code: def test_rng_seeding_in_parameter_initialization():
      initializers = [
          C.initializer.glorot_normal,
          C.initializer.glorot_uniform,
          C.initializer.he_normal,
          C.initializer.he_uniform,
          C.initializer.normal,
          C.initializer.uniform,
          C.initializer.xavier,
      ]
  
      for x in initializers:
          C.cntk_py.reset_random_seed(1)
  
          p1 = get_random_parameter_value(x)
          p2 = get_random_parameter_value(x)
          assert not np.allclose(p1, p2)
  
          C.cntk_py.reset_random_seed(2)
          p1 = get_random_parameter_value(x)
          C.cntk_py.reset_random_seed(2)
          p2 = get_random_parameter_value(x)
          assert np.allclose(p1, p2)
  
          C.cntk_py.reset_random_seed(3)
          p1 = get_random_parameter_value(x, seed=123)
          p2 = get_random_parameter_value(x, seed=123)
          assert np.allclose(p1, p2)
  
          C.cntk_py.reset_random_seed(4)
          p1 = get_random_parameter_value(x, seed=123)
          p2 = get_random_parameter_value(x, seed=456)
          assert not np.allclose(p1, p2)
  
          C.cntk_py.reset_random_seed(5)
          C.cntk_py.set_fixed_random_seed(789)
          p1 = get_random_parameter_value(x)
          p2 = get_random_parameter_value(x)
          assert np.allclose(p1, p2)
  
          C.cntk_py.reset_random_seed(6)
          C.cntk_py.set_fixed_random_seed(789)
          p1 = get_random_parameter_value(x, seed=123)
          p2 = get_random_parameter_value(x, seed=123)
          assert np.allclose(p1, p2)
  
          C.cntk_py.reset_random_seed(7)
          C.cntk_py.set_fixed_random_seed(789)
          p1 = get_random_parameter_value(x, seed=123)
          p2 = get_random_parameter_value(x, seed=456)
          assert not np.allclose(p1, p2)
  
          C.cntk_py.reset_random_seed(8)
          C.cntk_py.set_fixed_random_seed(789)
          p1 = get_random_parameter_value(x)
          C.cntk_py.set_fixed_random_seed(987)
          p2 = get_random_parameter_value(x)
          assert not np.allclose(p1, p2)
  
          C.cntk_py.reset_random_seed(9)
          C.cntk_py.set_fixed_random_seed(789)
          p1 = get_random_parameter_value(x)
          C.cntk_py.set_fixed_random_seed(987)
          C.cntk_py.set_fixed_random_seed(789)
          p2 = get_random_parameter_value(x)
          assert np.allclose(p1, p2)
  
imports: import numpy
  import pytest
  import cntk
  from multiprocessing import Process, Queue
label_desc: Use image node_id 16 for calling a global function with example usage: test_rng_seeding_in_parameter_initialization() without return types