code: def create_dataset_images(
      path_save_dir_downloaded_images,
      path_save_dir_tmp_datasets_images,
      num_proc,
      path_save_file_map_url_idx,
      path_save_dir_dataset_images,
  ):
      tar_paths = glob.glob(
          os.path.join(path_save_dir_downloaded_images, "*.tar")
      )
      dataset_images = create_dataset_images_from_tar(
          tar_paths=tar_paths,
          path_save_dir_tmp_datasets_images=path_save_dir_tmp_datasets_images,
          num_proc=num_proc,
          path_save_file_map_url_idx=path_save_file_map_url_idx,
          path_save_dir_dataset_images=path_save_dir_dataset_images,
      )
      return dataset_images
  
imports: import glob
  import json
  import logging
  import math
  import os
  import tarfile
  from copy import deepcopy
  import git
  from datasets import Dataset, Image, Sequence, Value, concatenate_datasets, load_from_disk
  from pathos.multiprocessing import ProcessingPool
  from tqdm import tqdm
label_desc: Use image node_id 6 for calling a global function with example usage: create_dataset_images(path_save_dir_downloaded_images, path_save_dir_tmp_datasets_images, num_proc, path_save_file_map_url_idx, path_save_dir_dataset_images) and returns: dataset_images