code: def create_image_set(self, with_label):
      image_set = self.get_raw_image_set(with_label)
      transformer = ChainedPreprocessing(
          [
              ImageResize(256, 256),
              ImageRandomCrop(224, 224, True),
              ImageMatToTensor(format="NHWC"),
              ImageSetToSample(
                  input_keys=["imageTensor"],
                  target_keys=["label"] if with_label else None,
              ),
          ]
      )
      image_set = image_set.transform(transformer)
      return image_set
  
imports: import pytest
  from pyspark.ml.linalg import DenseVector
  from bigdl.dllib.feature.common import ChainedPreprocessing, FeatureSet
  from bigdl.dllib.feature.image import *
  from bigdl.orca.test_zoo_utils import ZooTestCase
  from bigdl.dllib.keras.optimizers import Adam
  from bigdl.orca.tfpark import TFNet, TFOptimizer
  import tensorflow
  import numpy
  import os
  from bigdl.orca.tfpark import KerasModel, TFDataset
label_desc: Use image node_id 7 for calling the TestTFDataset obj's underlying member method code with example usage: obj.create_image_set(with_label) and returns: image_set