def METHOD_NAME(folder, pri_key, cert):
    tmp_dir = tempfile.TemporaryDirectory().name
    new_folder = os.path.join(tmp_dir, "new_folder")
    shutil.move(folder, new_folder)
    with open(os.path.join(tmp_dir, "test_file"), "wt") as f:
        f.write("fail case")
    with open("server.crt", "wb") as f:
        f.write(serialize_cert(cert))
    sign_folders(tmp_dir, pri_key, "server.crt", max_depth=1)
    return tmp_dir