code: def testDeprecationWarnings(self, mock_warning):
      module = MockModule("test")
      module.foo = 1
      module.bar = 2
      module.baz = 3
      all_renames_v2.symbol_renames["tf.test.bar"] = "tf.bar2"
      all_renames_v2.symbol_renames["tf.test.baz"] = "tf.compat.v1.baz"
  
      wrapped_module = module_wrapper.TFModuleWrapper(module, "test")
      self.assertTrue(tf_inspect.ismodule(wrapped_module))
  
      self.assertEqual(0, mock_warning.call_count)
      bar = wrapped_module.bar
      self.assertEqual(1, mock_warning.call_count)
      foo = wrapped_module.foo
      self.assertEqual(1, mock_warning.call_count)
      baz = wrapped_module.baz  # pylint: disable=unused-variable
      self.assertEqual(2, mock_warning.call_count)
      baz = wrapped_module.baz
      self.assertEqual(2, mock_warning.call_count)
  
      # Check that values stayed the same
      self.assertEqual(module.foo, foo)
      self.assertEqual(module.bar, bar)
  
imports: import pickle
  import types
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import module_wrapper
  from tensorflow.python.util import tf_inspect
  from tensorflow.tools.compatibility import all_renames_v2
label_desc: Use image node_id 2 for calling the DeprecationWrapperTest obj's underlying member method code with example usage: obj.testDeprecationWarnings(mock_warning) without return types