code: def test_loads_only_once_even_when_result_equal_to_everything(self):
      # This would fail if the implementation of `_memoize` used `==`
      # rather than `is` to check for the sentinel value.
      class EqualToEverything:
          def __eq__(self, other):
              return True
  
      count = 0
  
      @lazy.lazy_load("foo")
      def foo():
          nonlocal count
          count += 1
          return EqualToEverything()
  
      dir(foo)
      dir(foo)
      self.assertEqual(count, 1)
  
file_path: tensorboard/tensorboard/lazy_test.py
imports: import unittest
  from tensorboard import lazy
label_desc: Use image node_id 6 for calling the LazyTest obj's underlying member method code with example usage: obj.test_loads_only_once_even_when_result_equal_to_everything() and returns: EqualToEverything, True