code: def test_lazy_creation_with_memoization(self):
      boxed_count = [0]
  
      @lazy_tensor_creator.LazyTensorCreator
      def lazy_tensor():
          boxed_count[0] = boxed_count[0] + 1
          return tf.constant(1)
  
      self.assertEqual(0, boxed_count[0])
      real_tensor = lazy_tensor()
      self.assertEqual(1, boxed_count[0])
      lazy_tensor()
      self.assertEqual(1, boxed_count[0])
  
file_path: tensorboard/tensorboard/util/lazy_tensor_creator_test.py
imports: import tensorflow
  from tensorboard.util import lazy_tensor_creator
label_desc: Use image node_id 2 for calling the LazyTensorCreatorTest obj's underlying member method code with example usage: obj.test_lazy_creation_with_memoization() and returns: tf