code: def get_raw_image_set(self, with_label):
      resource_path = os.path.join(
          os.path.split(__file__)[0], "../../resources"
      )
      if with_label:
          image_folder = os.path.join(resource_path, "cat_dog")
      else:
          image_folder = os.path.join(resource_path, "cat_dog/*")
      image_set = ImageSet.read(
          image_folder,
          with_label=with_label,
          sc=get_spark_context(),
          one_based_label=False,
      )
      return image_set
  
imports: from __future__ import print_function
  import logging
  import shutil
  from unittest import TestCase
  import keras.backend
  from bigdl.dllib.nncontext import *
  from bigdl.dllib.feature.image import ImageSet
label_desc: Use image node_id 15 for calling the ZooTestCase obj's underlying member method code with example usage: obj.get_raw_image_set(with_label) and returns: image_set