def increment(self, num=1):
        """Atomically increment the counter by num (default 1) and return the
        new value.
        """
        with self._lock:
            self.value += num
            return self.value
Atomically increment the counter by num (default 1) and return the
        new value.
        
corag/src/utils.py