code: def test_switch():
      graph = tf.Graph()
  
      with graph.as_default():
          data_np = np.random.uniform(0, 5, size=(2, 4, 5, 1)).astype(
              "float32"
          )
          dname = "data"
          flag_name = "flag"
          data = tf.placeholder(
              shape=data_np.shape, dtype=data_np.dtype, name=dname
          )
          split = tf.split(data, 2, axis=0)
          flag = tf.placeholder(shape={}, dtype=tf.bool, name=flag_name)
          output_false, output_true = control_flow_ops.switch(
              split[1], flag
          )
          with tf.Session() as sess:
              tf_out = sess.run(
                  output_false,
                  feed_dict={data.name: data_np, flag.name: False},
              )
  
      check_equal(graph, tf_out, {dname: data_np, flag_name: False})
  
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 17 for calling a global function with example usage: test_switch() without return types