def METHOD_NAME(dpath: str, split: str):
    all_convos = {}
    src_dir = os.path.join(dpath, 'Conversations', split)
    for f_name in tqdm(os.listdir(src_dir)):
        with open(os.path.join(src_dir, f_name)) as f:
            convo = json.load(f)
        cid = f_name.split('.')[0]
        all_convos[cid] = convo
    dest_path = os.path.join(dpath, 'conversations', f"{split}.json")
    with open(dest_path, 'w') as dest:
        json.dump(all_convos, dest, indent=2)
    shutil.rmtree(src_dir)