code: def testDoesNotModifyNonVariables(self):
      class MyModule(base.Module):
          v = tf.Variable(21.0)
          d = {}
  
      my_module = MyModule()
      self.assertEqual(21.0, self.evaluate(my_module.v))
  
      with custom_getter.custom_variable_getter(lambda v: v * 2):
          self.assertEqual(42.0, self.evaluate(my_module.v))
          my_module.d["foo"] = "bar"
  
      self.assertEqual(21.0, self.evaluate(my_module.v))
      self.assertEqual("bar", my_module.d["foo"])
  
file_path: sonnet/sonnet/src/custom_getter_test.py
imports: import doctest
  from sonnet.src import base
  from sonnet.src import custom_getter
  from sonnet.src import test_utils
  import tensorflow
label_desc: Use image node_id 1 for calling the CustomVariableGetterTest obj's underlying member method code with example usage: obj.testDoesNotModifyNonVariables() without return types