def METHOD_NAME(config, audio_paths, codes, durs, speakers, path_to_f0):
    ratio = config.code_hop_size / (config.sampling_rate * F0_FRAME_SPACE)
    seg_f0s = align_f0(path_to_f0, audio_paths, durs, ratio)
    data = {
        "codes": codes,
        "duration": durs,
        "f0": seg_f0s,
        "speaker": speakers,
        "path": audio_paths,
    }
    return data