def write_stats(self, new_stats):
        with open(self.stats_path, 'w') as stats_file:
            json.dump(new_stats, stats_file)

        return True
Test case where failed lock acquirer tries to update lock after it's been released.
dataset/ETHPy150Open toastdriven/microsearch/microsearch.py/Microsearch.write_stats--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/test/lock_test.py/LockTestCase.testRaceToUpdateReleasedLock