code: def test_loop_dependent_allocate():
      N = te.size_var("N")
      A = te.placeholder((2 * N,), "float32", "A")
      C = te.compute((N,), lambda i: A[2 * i] + A[i + 1], name="C")
      s = te.create_schedule(C.op)
      AA = s.cache_read(A, "local", [C])
      s[AA].compute_at(s[C], s[C].op.axis[0])
      # this line should fail due to IRUseDefAnalysis sees an allocate statement
      # referencing undefined variable
      tvm.lower(s, [A, C])
  
imports: import pytest
  import tvm
  from tvm import te
label_desc: Use image node_id 1 for calling a global function with example usage: test_loop_dependent_allocate() without return types