code: def create_sub_folders(number_of_sub_folders, number_of_images):
      parent_temp_directory = tempfile.mkdtemp()
  
      temp_directories = []
      temp_files = []
  
      for x in range(number_of_sub_folders):
          sub_temp_directory = tempfile.mkdtemp(
              dir=parent_temp_directory
          )
          temp_directories.append(sub_temp_directory)
          for y in range(number_of_images):
              temp_file = tempfile.NamedTemporaryFile(
                  dir=sub_temp_directory, suffix=".JPEG", delete=False
              )
              im_array = Image.fromarray(
                  np.uint8(np.random.rand(800, 800) * 255)
              )
              im_array.save(temp_file.name, "JPEG")
              temp_files.append(temp_file)
  
      return temp_directories, temp_files, parent_temp_directory
  
file_path: Augmentor/tests/util_funcs.py
imports: import os
  import sys
  import tempfile
  import io
  import shutil
  import numpy
  from PIL import Image
label_desc: Use image node_id 3 for calling a global function with example usage: create_sub_folders(number_of_sub_folders, number_of_images) and returns: temp_directories,  temp_files,  parent_temp_directory