code: def test_parameter_set_value():
      p = C.Parameter(shape=(2, 3), init=1)
      n = np.random.randn(2, 3)
      p.value = n
      assert np.all(p.value == n.astype(p.dtype))
  
      n = np.reshape(np.arange(6), (2, 3))
      p.value = n
      op = plus(p, p)
      state, output = op.forward({}, op.outputs, op.outputs)
      value = output[op.output]
      assert np.all(value == 2 * n.astype(p.dtype))
  
      p.value = C.internal.sanitize_value(
          p.shape, 1.0, np.float32, None
      )
      assert np.all(p.value == np.ones((2, 3)))
  
file_path: CNTK/bindings/python/cntk/tests/variables_test.py
imports: from ..None import times, placeholder, constant, plus, alias, initializer
  import numpy
  import cntk
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_parameter_set_value() without return types