code: def test_function():
      with tf.Graph().as_default():
          x = tf.placeholder(tf.int32, (), name="x")
          y = tf.placeholder(tf.int32, (), name="y")
          z = 3 * x + 2 * y
          lin = function([x, y], z, givens={y: 0})
  
          with single_threaded_session():
              initialize()
  
              assert lin(2) == 6
              assert lin(x=3) == 9
              assert lin(2, 2) == 10
              assert lin(x=2, y=3) == 12
  
imports: import tensorflow
  from baselines.common.tf_util import function, initialize, single_threaded_session
label_desc: Use image node_id 1 for calling a global function with example usage: test_function() without return types