code: def __init__(self, array, n_class=None, categorical_label=True):
      fn = lambda x: self.preload(x, n_class, categorical_label)
      super(LabelPreloader, 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 LabelPreloader object from inherited base classes: Preloader with example: obj = LabelPreloader(array, n_class, categorical_label)