code: def _main(
      src_root,
      src_dict_path,
      src_bpe_path,
      src_splits,
      tgt_root,
      tgt_splits,
  ):
      src_dict = load_dictionary(src_dict_path)
      bpe2idx, idx2bpe = load_bpe(src_bpe_path)
  
      assert len(src_splits) == len(tgt_splits)
      for src_split, tgt_split in zip(src_splits, tgt_splits):
          src_dataset = load_dataset(
              f"{src_root}/{src_split}", src_dict
          )
          tgt_path = f"{tgt_root}/{tgt_split}.txt"
          print(f"processing {src_split} (dump to {tgt_path})...")
          os.makedirs(os.path.dirname(tgt_path), exist_ok=True)
          with open(tgt_path, "w") as f:
              for tokens in tqdm.tqdm(src_dataset):
                  raw_str = detokenize(tokens, src_dict, idx2bpe)
                  f.write(raw_str + "\n")
  
file_path: fairseq/examples/data2vec/scripts/text/unprocess_data.py
imports: import json
  import os
  import tqdm
  from fairseq.data import Dictionary, data_utils
label_desc: Use image node_id 5 for calling a global function with example usage: _main(src_root, src_dict_path, src_bpe_path, src_splits, tgt_root, tgt_splits) without return types