code: def save_images_to_folder(images, size, path):
      if os.path.isdir(path):
          shutil.rmtree(path)
      os.makedirs(path)
  
      for index in range(images.shape[0]):
          if index < size:
              image_array = (
                  np.reshape(images[index], (160, 160, 3)) * 255
              ).astype(np.uint8)
              Image.fromarray(image_array, "RGB").save(
                  path + str(index) + ".png"
              )
  
file_path: cleverhans/cleverhans_v3.1.0/examples/facenet_adversarial_faces/set_loader.py
imports: import shutil
  import os
  import lfw
  import facenet
  import numpy
  from PIL import Image
label_desc: Use image node_id 2 for calling a global function with example usage: save_images_to_folder(images, size, path) without return types