code: def download_and_extract(
      to_folder,
      lang_pairs,
      dl_dataset,
      to_manually_download_urls,
      completed_urls={},
      completed_extraction={},
      debug=False,
  ):
      dl_folder = f"{to_folder}/downloads"
      extract_folder = f"{to_folder}/extracted"
      raw_folder = f"{to_folder}/raw"
      lid_filtered = f"{to_folder}/lid_filtered"
  
      os.makedirs(extract_folder, exist_ok=True)
      os.makedirs(raw_folder, exist_ok=True)
      os.makedirs(lid_filtered, exist_ok=True)
  
      to_be_manually_dowloaded = check_need_manual_downalod(
          dl_folder, to_manually_download_urls
      )
  
      completed_urls = download_dataset(
          dl_folder, dl_dataset, completed_urls
      )
      if debug:
          print("completed urls: ", completed_urls)
  
      extracted_folders = extract_all_files(
          completed_urls,
          extract_folder=extract_folder,
          completed_extraction=completed_extraction,
          debug=debug,
      )
      if debug:
          print(
              "download files have been extracted to folders: ",
              extracted_folders,
          )
  
      converted_files = convert_files_if_needed(
          extracted_folders, debug=False
      )
      for src_tgt in lang_pairs:
          print(f"working on {dl_dataset.name}: {src_tgt}")
          src, tgt = src_tgt.split("-")
          concat_into_splits(
              dl_dataset,
              src=src,
              tgt=tgt,
              extracted_folders=extracted_folders,
              to_folder=raw_folder,
              debug=debug,
          )
      print("completed data into: ", raw_folder)
  
imports: from typing import NamedTuple, List
  from urllib.parse import urlparse
  import os, sys
  import subprocess
  from subprocess import check_call, check_output
  import glob
  import wget
  import re
  import multiprocessing
  from functools import partial
  import pathlib
  from collections import OrderedDict
label_desc: Use image node_id 29 for calling a global function with example usage: download_and_extract(to_folder, lang_pairs, dl_dataset, to_manually_download_urls, completed_urls, completed_extraction, debug) without return types