code: def copy_and_simplify(base_path, simplify):
      with tempfile.TemporaryDirectory(dir=base_path) as tempdir:
          # Condense Labels
          input_dir = os.path.join(base_path, "en-worldwide-newswire")
          final_dir = os.path.join(
              base_path, "4class" if simplify else "9class"
          )
          os.makedirs(tempdir, exist_ok=True)
          os.makedirs(final_dir, exist_ok=True)
          for root, dirs, files in os.walk(input_dir):
              if root[-6:] == "REVIEW":
                  batch_files = os.listdir(root)
                  for filename in batch_files:
                      file_path = os.path.join(root, filename)
                      write_new_file(
                          final_dir, file_path, filename, simplify
                      )
  
file_path: stanza/stanza/utils/datasets/ner/simplify_en_worldwide.py
imports: import argparse
  import os
  import tempfile
  import stanza
  from stanza.utils.default_paths import get_default_paths
  from stanza.utils.datasets.ner.utils import read_tsv
  from stanza.utils.get_tqdm import get_tqdm
label_desc: Use image node_id 4 for calling a global function with example usage: copy_and_simplify(base_path, simplify) without return types