code: def test_all_vars():
      x = relay.Var("x")
      y = relay.Var("y")
      z = relay.Var("z")
  
      f1 = relay.Function([x, y], z)
      assert_vars_match(all_vars(f1), [x, y, z])
  
      f2 = relay.Function([x], relay.Let(y, relay.Tuple([]), z))
      assert_vars_match(all_vars(f2), [x, y, z])
  
      f3 = relay.Function([x], relay.Tuple([y, z]))
      assert_vars_match(all_vars(f3), [x, y, z])
  
      tup = relay.Tuple([x, y, z])
      assert_vars_match(all_vars(tup), [x, y, z])
  
file_path: tvm/tests/python/relay/test_pass_vars.py
imports: import tvm
  from tvm import te
  from tvm import relay
  from tvm.relay.analysis import free_vars, free_type_vars, bound_vars, bound_type_vars, all_vars, all_type_vars
label_desc: Use image node_id 8 for calling a global function with example usage: test_all_vars() without return types