code: def test_reduce_rows_0(self):
      data = [Row(x=float(x)) for x in range(5)]
      df = self.sql.createDataFrame(data)
      with tf.Graph().as_default():
          # The placeholder that corresponds to column 'x'
          x_1 = tf.placeholder(tf.double, shape=[], name="x_1")
          x_2 = tf.placeholder(tf.double, shape=[], name="x_2")
          y = tf.Variable(0.0, dtype=tf.double, name="y")
          x_0 = tf.add(y, x_1, name="x_0")
          # The output that adds 3 to x
          x = tf.add(x_0, x_2, name="x")
          # The resulting number
          res = tfs.reduce_rows(x, df)
      assert res == sum([r.x for r in data])
  
imports: from __future__ import print_function
  from pyspark import SparkContext
  from pyspark.sql import DataFrame, SQLContext
  from pyspark.sql import Row
  from pyspark.sql.functions import col
  import tensorflow
  import pandas
  import tensorframes
  from tensorframes.core import _java_api
label_desc: Use image node_id 16 for calling the TestCore obj's underlying member method code with example usage: obj.test_reduce_rows_0() without return types