code: def test_assign_timestamp_bump(input_data, device_id, precision):
      dt = PRECISION_TO_TYPE[precision]
      data = AA(input_data, dtype=dt)
  
      x = C.parameter(shape=data.shape, dtype=dt)
      w = C.constant(np.ones_like(data))
      y = w + 1
      z = C.assign(x, y)
  
      f = x + 1
      result = f.eval()
      assert np.array_equal(x.asarray(), 0 * np.ones_like(data))
      assert np.array_equal(result, 1 * np.ones_like(data))
  
      result = z.eval()
      assert np.array_equal(x.asarray(), 2 * np.ones_like(data))
      assert np.array_equal(result, 2 * np.ones_like(data))
  
      result = f.eval()
      assert np.array_equal(x.asarray(), 2 * np.ones_like(data))
      assert np.array_equal(result, 3 * np.ones_like(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 5 for calling a global function with example usage: test_assign_timestamp_bump(input_data, device_id, precision) without return types