@contextmanager
def timer(name):
    t0 = time.time()
    (yield)
    logger.info(f'[{name}] done in {(time.time() - t0):.0f} s')
@contextmanager
def timer(name):
    t0 = time.time()
    (yield)
    logger.info(f'[{name}] done in {(time.time() - t0):.0f} s')