@property
def _lazyprop(self: Any) -> Any:
    if (not hasattr(self, attr_name)):
        setattr(self, attr_name, function(self))
    return getattr(self, attr_name)
@property
def _lazyprop(self: Any) -> Any:
    if (not hasattr(self, attr_name)):
        setattr(self, attr_name, function(self))
    return getattr(self, attr_name)