code: def test_tfdataset_with_dataframe(self):
      rdd = self.sc.range(0, 1000)
      df = rdd.map(
          lambda x: (
              DenseVector(np.random.rand(20).astype(np.float32)),
              x % 10,
          )
      ).toDF(["feature", "label"])
      train_df, val_df = df.randomSplit([0.7, 0.3])
  
      create_ds = self.make_create_ds_fn(train_df, val_df)
  
      self.check_dataset(create_ds)
  
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 22 for calling the TestTFDataset obj's underlying member method code with example usage: obj.test_tfdataset_with_dataframe() without return types