code: def test_callnode_loop_vars():
      graph = tf.Graph()
      with graph.as_default():
          i = tf.add(tf.constant(0), 1)
  
          def c(i):
              return tf.less(i, 10)
  
          def b(i):
              return tf.add(i, 1)
  
          r = tf.while_loop(c, b, [i])
  
          with tf.Session() as sess:
              tf_out = sess.run(r)
  
          check_equal(graph, tf_out)
  
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 3 for calling a global function with example usage: test_callnode_loop_vars() and returns: tf, tf