code: def test_initial_values_preserved(self):
      with hk.variables():
          v = tf.Variable(0)
          v.assign(1)
  
      def assert_values():
          self.assertEqual(v.initial_tensor_value.numpy(), 0)
          self.assertEqual(v.tensor_value.numpy(), 1)
  
      assert_values()
      f = hk.transform(lambda: v.assign(2))
      assert_values()
      params = f.init()
      assert_values()
      f.apply(params)
      assert_values()
  
imports: from absl.testing import parameterized
  import sonnet
  from sonnet.src import test_utils
  from sonnet.src.functional import haiku
  import tensorflow
  import tree
label_desc: Use image node_id 2 for calling the NetworkTest obj's underlying member method code with example usage: obj.test_initial_values_preserved() without return types