def getStackAssertIfEmpty(self):
        stack = self.getStack()

        assert stack is not None
        assert len(stack) > 0

        return stack


#map from type to the actual type descending from ThreadLocalStackPushable.
dataset/ETHPy150Open ufora/ufora/ufora/util/ThreadLocalStack.py/ThreadLocalStack.getStackAssertIfEmpty/original