code: def test_df_to_simple_rdd(spark_context):
      features = np.ones((2, 10))
      labels = np.asarray([[2.0], [1.0]]).reshape((2,))
  
      data_frame = adapter.to_data_frame(
          spark_context, features, labels, categorical=False
      )
  
      rdd = adapter.df_to_simple_rdd(data_frame, False)
      assert rdd.count() == 2
  
imports: import numpy
  from elephas.ml import adapter
label_desc: Use image node_id 5 for calling a global function with example usage: test_df_to_simple_rdd(spark_context) without return types