def _state_should_be_updated(self):
        """Should the state of the resource be updated?"""
        # To prevent abuse of the API, update the status only once in a while.
        now = datetime.datetime.now()
        return (now - self._last_updated) > self._STATE_UPDATE_INTERVAL
dataset/ETHPy150Open s3rvac/retdec-python/retdec/resource.py/Resource._state_should_be_updated/original