def METHOD_NAME(idx_scp, spk2utt, utt2xvec, meeting2spk_list, args):
    out_prefix = args.out
    ivc_dim = 256
    print("ivc_dim = {}".format(ivc_dim))
    out_prefix = out_prefix + "_parts00_xvec"
    ivc_writer = WriteHelper(f"ark,scp,f:{out_prefix}.ark,{out_prefix}.scp")
    idx_writer = open(out_prefix + ".idx", "wt")
    spk2xvec = {}
    if args.emb_type == "global":
        print("Use global speaker embedding.")
        for spk in spk2utt.keys():
            spk2xvec[spk] = calc_global_ivc(spk, spk2utt, utt2xvec)[np.newaxis, :]
    frames_list = []
    for utt_id in tqdm(idx_scp, total=len(idx_scp), ascii=True, disable=args.no_pbar):
        mid = utt_id.split("-")[0]
        idx_writer.write(utt_id+"\n")
        xvec_list = []
        for spk in meeting2spk_list[mid]:
            spk_xvec = spk2xvec[spk]
            xvec_list.append(spk_xvec)
        for _ in range(args.n_spk - len(xvec_list)):
            xvec_list.append(np.zeros((ivc_dim,), dtype=np.float32))
        xvec = np.row_stack(xvec_list)
        ivc_writer(utt_id, xvec)
        frames_list.append((mid, 1))
    return frames_list