code: def replacing_symlink(source, link_name):
      
      with make_tmp_name(link_name) as tmp_link_name:
          os.symlink(source, tmp_link_name)
          replace_file_or_dir(link_name, tmp_link_name)
docs: Create symlink that overwrites any existing target.