def transaction(self, function):
    with self.instance() as i:
      return function(i)
Calls ``function`` with an instance from the pool as the single argument. Returns the result
dataset/ETHPy150Open JeremyOT/Toto/toto/tasks.py/InstancePool.transaction