code: def test_numpy_conversion():
      from cntk.internal import sanitize_value
      from ..cntk_py import Value
  
      # check NDArrayView
      ndav = sanitize_value((2, 3), 1, np.float32, None)
      assert np.all(ndav.asarray() == np.ones((2, 3)))
  
      # check Value
      assert np.all(Value(ndav).asarray() == np.ones((2, 3)))
  
      # check Constant
      c = C.constant(1, shape=(2, 3))
      assert np.all(c.asarray() == np.ones((2, 3)))
  
      # check Parameter
      p = C.parameter(shape=(2, 3), init=1)
      assert np.all(p.asarray() == np.ones((2, 3)))
  
imports: import numpy
  import cntk
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_numpy_conversion() without return types