code: def create_feature_set_from_rdd(self):
      dim = 2
      data_len = 100
  
      def gen_rand_sample():
          features = np.random.uniform(0, 1, dim)
          label = np.array((2 * features).sum() + 0.4)
          return Sample.from_ndarray(features, label)
  
      FeatureSet.rdd(
          self.sc.parallelize(range(0, data_len)).map(
              lambda i: gen_rand_sample()
          )
      ).to_dataset()
  
file_path: BigDL/python/dllib/test/bigdl/feature/test_feature_common.py
imports: import pytest
  from bigdl.dllib.nn.layer import *
  from bigdl.dllib.nn.criterion import *
  from bigdl.dllib.optim.optimizer import *
  from test.bigdl.test_zoo_utils import ZooTestCase
  from bigdl.dllib.feature.common import *
  from bigdl.dllib.nncontext import init_nncontext, init_spark_conf
label_desc: Use image node_id 5 for calling the TestFeatureCommon obj's underlying member method code with example usage: obj.create_feature_set_from_rdd() and returns: Sample