code: def paths_to_images(paths, image_size):
      num_images = len(paths)
      im = np.zeros(
          (num_images, 3, image_size, image_size), dtype=np.float32
      )
  
      for i in range(num_images):
          temp = np.array(
              Image.open(paths[i])
              .convert("RGB")
              .resize((image_size, image_size), Image.BILINEAR)
          )
          temp = np.moveaxis(temp, -1, 0)
          im[i] = temp
  
      im /= 255
  
      return im
  
imports: import os
  import imghdr
  import numpy
  from PIL import Image
label_desc: Use image node_id 1 for calling a global function with example usage: paths_to_images(paths, image_size) and returns: im