def temp_file_for(path):
    ext = os.path.splitext(path)[1]
    with NamedTemporaryFile(suffix=ext, delete=False) as f:
        return f.name
Return an unused filename with the same extension as the
dataset/ETHPy150Open beetbox/beets/beets/util/artresizer.py/temp_file_for