def _update_state_if_needed(self):
        if self._state_should_be_updated():
            self._update_state()
Updates the state of the resource (if needed).
dataset/ETHPy150Open s3rvac/retdec-python/retdec/resource.py/Resource._update_state_if_needed