code: def test_as_shape_to_1d(device_id):
      dev = cntk_device(device_id)
      x = C.input_variable(1)
      w_1d = C.parameter((1), device=dev)
      assert np.array_equal(w_1d.value, [0])
  
      op = x * 0.1
      value = op.eval(
          {x: np.asarray([[1]], dtype=np.float32)},
          as_numpy=False,
          device=dev,
      )
      value = value.data.as_shape(value.data.shape[1:])
      w_1d.value = value
      assert np.array_equal(
          w_1d.value, np.asarray([0.1], dtype=np.float32)
      )
  
imports: import pytest
  import numpy
  import scipy.sparse
  import cntk
  from cntk.ops.tests.ops_test_utils import cntk_device
  from cntk.internal import _value_as_sequence_or_array
  from cntk import asvalue
  from cntk.tests.test_utils import _to_dense, _to_csr
label_desc: Use image node_id 12 for calling a global function with example usage: test_as_shape_to_1d(device_id) without return types