@contextlib.contextmanager
    def allocate(self):
        increment_refcount()
        try:
            yield self
        except:
            decrement_refcount()
            raise
Returns status
dataset/ETHPy150Open dahlia/wand/wand/resource.py/Resource.allocate--crossover with--dataset/ETHPy150Open saltstack/salt/salt/daemons/salting.py/SaltKeep.statusRole