code: def test_vanilla_loop_bound():
      graph = tf.Graph()
      with graph.as_default():
          dshape = (2, 10)
          dtype = "float32"
          dname = "data"
          np_data = np.random.uniform(size=dshape).astype(dtype)
          data = tf.placeholder(shape=dshape, dtype=dtype, name=dname)
          x = tf.slice(data, [1, 4], [1, 4])
          outer = x + 5.0
  
          def body(x, y):
              res = tf.cond(
                  tf.less(y, 10),
                  lambda: tf.add(10.0, 20.0),
                  lambda: tf.square(10.0),
              )
              z = tf.constant(7)
              res = tf.cond(
                  tf.less(z, 10), lambda: res * 5, lambda: res + 10
              )
              return tf.multiply(res, x * outer), y + 1
  
          y = tf.constant(0)
  
          def condition(x, y):
              return tf.less(y, 20)
  
          r = tf.while_loop(condition, body, loop_vars=[x, y])
          with tf.Session() as sess:
              tf_out = sess.run(r, feed_dict={"%s:0" % dname: np_data})
  
      check_equal(graph, tf_out, {dname: np_data})
  
imports: import pytest
  from tensorflow.python.ops import control_flow_ops
  import numpy
  from tvm import nd, relay, ir, testing
  from tvm.relay.frontend.tensorflow import from_tensorflow
label_desc: Use image node_id 15 for calling a global function with example usage: test_vanilla_loop_bound() and returns: tf,  unknown, tf