code: def test_add_sub():
      x = relay.var("x", shape=(10,))
      y = relay.var("y", shape=(10,))
      z = x + x
      z = z - y
      func = relay.Function([x, y], z)
      check_memory_plan(func, check_add_sub)
  
file_path: tvm/tests/python/relay/test_memory_passes.py
imports: import tvm
  from tvm import te
  import numpy
  from tvm import relay
label_desc: Use image node_id 8 for calling a global function with example usage: test_add_sub() without return types