code: def test_lazyproperty():
      class Dummy:
          def __init__(self):
              self.val = 1
  
          @lazyproperty
          def a_prop(self):
              return self.val
  
      obj = Dummy()
      assert obj.val == 1
      assert obj.a_prop == 1
      obj.val = 23
      assert obj.a_prop == 1
      assert obj._a_prop == 1
  
file_path: tslumen/tests/unit/test_misc.py
imports: import pytest
  import mock
  from inspect import isclass
  import jinja2
  from tslumen.misc import lazyproperty, repr_html, import_error_function, import_error_class, import_error_module
label_desc: Use image node_id 1 for calling a global function with example usage: test_lazyproperty() and returns: self