code: def __init__(
      self, array, image_shape, normalize=True, grayscale=False
  ):
      fn = lambda x: self.preload(x, image_shape, normalize, grayscale)
      super(ImagePreloader, self).__init__(array, fn)
  
imports: from __future__ import division, print_function, absolute_import
  import os
  import random
  import numpy
  from PIL import Image
  import pickle
  import csv
  import warnings
  import tensorflow.compat.v1
  from io import BytesIO
label_desc: Use image node_id 1 to create a new ImagePreloader object from inherited base classes: Preloader with example: obj = ImagePreloader(array, image_shape, normalize, grayscale)