def free_lock(id):
    try:
        filename = _lock_file(id)
        # On POSIX systems os.rename is an atomic operation, so this is the safe
        # way to delete a lock:
        os.rename(filename, filename + '.redundant')
        os.remove(filename + '.redundant')
        return True
    except:
        return False
starting dirs & files:
dataset/ETHPy150Open nitishsrivastava/deepnet/cudamat/gpu_lock2.py/free_lock--crossover with--dataset/ETHPy150Open kenfar/DataGristle/scripts/tests/test_gristle_dir_merger_cmd.py/TestMatchOnAndMD5.test_dup_files_and_onmatch_is_usedest_with_partialmatch