code: def concat_into_splits(
      dl_dataset, src, tgt, extracted_folders, to_folder, debug
  ):
      to_folder_tmp = f"{to_folder}_tmp"
      os.makedirs(to_folder_tmp, exist_ok=True)
      concat_files(
          "train",
          src,
          tgt,
          extracted_folders,
          split_urls=dl_dataset.train_urls,
          path_patterns=dl_dataset.train_files_patterns,
          to_folder=to_folder_tmp,
          debug=debug,
      )
      lid_filter("train", src, tgt, to_folder_tmp, to_folder, debug)
  
      concat_files(
          "valid",
          src,
          tgt,
          extracted_folders,
          split_urls=dl_dataset.valid_urls,
          path_patterns=dl_dataset.valid_files_patterns,
          to_folder=to_folder,
          debug=debug,
      )
      concat_files(
          "test",
          src,
          tgt,
          extracted_folders,
          split_urls=dl_dataset.test_urls,
          path_patterns=dl_dataset.test_files_patterns,
          to_folder=to_folder,
          debug=debug,
      )
  
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 25 for calling a global function with example usage: concat_into_splits(dl_dataset, src, tgt, extracted_folders, to_folder, debug) without return types