def METHOD_NAME(self):
    value = 100
    def func():
        return value
    assert func() == 100
    value = 1000
    assert func() == 1000
    @utils.read_only_cache()
    def func():
        return value
    assert func() == 1000
    value = 10000
    assert func() == 1000