code: def __init__(self, array, function):
      self.array = array
      self.function = function
  
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 Preloader object from inherited base classes: object with example: obj = Preloader(array, function)