code: def test_opaque_access_during_complete():
      def opaque_access_during_complete(a: T.handle) -> None:  # error
          A = T.match_buffer(a, (16, 16), "float32")
          for i, j in T.grid(16, 16):
              with T.block():
                  T.evaluate(
                      T.call_extern(
                          "dummy_extern_function", A.data, dtype="int32"
                      )
                  )
  
      check_error(opaque_access_during_complete, None)
  
imports: import inspect
  import re
  import pytest
  import tvm
  import tvm.testing
  from tvm import tir
  from tvm.ir.diagnostics import override_renderer
  from tvm.script import from_source
  from tvm.script import tir
label_desc: Use image node_id 21 for calling a global function with example usage: test_opaque_access_during_complete() without return types