code: def testLazyLoaderMock(self, mock_warning):
      name = LazyLoaderTest.__module__
      lazy_loader_module = lazy_loader.LazyLoader(
          "lazy_loader_module", globals(), name, warning="Test warning."
      )
  
      self.assertEqual(0, mock_warning.call_count)
      lazy_loader_module.foo = 0
      self.assertEqual(1, mock_warning.call_count)
      foo = lazy_loader_module.foo
      self.assertEqual(1, mock_warning.call_count)
  
      # Check that values stayed the same
      self.assertEqual(lazy_loader_module.foo, foo)
  
file_path: tensorflow/tensorflow/python/util/lazy_loader_test.py
imports: import doctest
  import inspect
  import pickle
  import types
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import lazy_loader
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 2 for calling the LazyLoaderTest obj's underlying member method code with example usage: obj.testLazyLoaderMock(mock_warning) without return types