code: def test_for_scalar(self):
      import tensorflow as tf
  
      with tf.Graph().as_default():
          input1 = tf.placeholder(dtype=tf.float32, shape=())
          output = input1 + 1
          sess = tf.Session()
          net = TFNet.from_session(sess, [input1], [output])
          sess.close()
      out_value = net.forward(np.array(1.0))
      assert len(out_value.shape) == 0
  
file_path: analytics-zoo/pyzoo/test/zoo/tfpark/test_tfnet.py
imports: import pytest
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
  from zoo.tfpark import TFNet, TFDataset
  from bigdl.util.common import *
label_desc: Use image node_id 2 for calling the TestTF obj's underlying member method code with example usage: obj.test_for_scalar() without return types