def clean_files_for(file):
    """
    Remove, if they exist, file, file.json and file.lock
    """
    for f in [file, f"{file}.json", f"{file}.lock"]:
        if os.path.isfile(f):
            os.remove(f)

    Remove, if they exist, file, file.json and file.lock
    
dpkd/transformers/src/transformers/utils/hub.py