code: def test_append_shape(self):
      data = [Row(x=float(x)) for x in range(5)]
      df = self.sql.createDataFrame(data)
      ddf = tfs.append_shape(df, col("x"), [-1])
      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")
          # The output that adds 3 to x
          x = tf.add(x_1, x_2, name="x")
          # The resulting number
          res = tfs.reduce_rows(x, ddf)
          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 18 for calling the TestCore obj's underlying member method code with example usage: obj.test_append_shape() without return types