code: def test_assign_to_constant(input_data, device_id, precision):
      dt = PRECISION_TO_TYPE[precision]
      data = AA(input_data, dtype=dt)
  
      value = C.parameter(init=data)
      dest = C.constant(shape=data.shape, dtype=dt)
      assign_op = C.assign(dest, value)
  
      result = assign_op.eval()
  
      assert np.array_equal(dest.asarray(), data)
      assert np.array_equal(result, data)
  
file_path: CNTK/bindings/python/cntk/ops/tests/assign_test.py
imports: import numpy
  import pytest
  import cntk
  from .ops_test_utils import unittest_helper, _test_unary_op, AA, precision, PRECISION_TO_TYPE, constant
  from cntk.internal import sanitize_dtype_cntk
label_desc: Use image node_id 1 for calling a global function with example usage: test_assign_to_constant(input_data, device_id, precision) without return types