def METHOD_NAME(store, ref, target):
    # prepare the mount point
    os.makedirs(target, exist_ok=True)
    print("target", target)
    store.read_tree_at(ref, target)
    # Find the archive file in target, we use the first alphabetical regular file
    files = sorted(filter(lambda f: os.path.isfile(os.path.join(target, f)),
                          os.listdir(target)))
    if len(files) == 0:
        raise RuntimeError("No archive files in source")
    return files[0], "oci-archive"