code: def write_bpe_train_text(data_dict, file):
      """write English BPE training text data"""
  
      with open(file, "w") as fp:
          for idx, content in data_dict.items():
              if "train" == content["split"]:
                  text = normalize_text(content["text"])
                  text = text.replace("<noise>", "")
                  text = text.replace("<unk>", "")
                  text = remove_redundant_whitespaces(text)
                  text = extract_non_mandarin(text)
                  if text != "":
                      fp.write(text + "\n")
  
imports: import argparse
  import collections
  import itertools
  import os
  import random
  import re
  import sys
label_desc: Use image node_id 21 for calling a global function with example usage: write_bpe_train_text(data_dict, file) without return types