code: def test_dynamic_callsite_tensor_not_supported():
      """
      Test to check dynamic callsite tensor error.
      """
  
      def get_inner_func():
          x = relay.var("x", shape=(relay.Any(), 2, 2, 4), dtype="int8")
          x = relay.nn.max_pool2d(x)
          x = _create_primitive_function(x)
          return x
  
      ifm = relay.var("input", shape=(1, 2, 2, 4), dtype="int8")
      call = relay.Call(get_inner_func(), [ifm])
      mod = tvm.IRModule.from_expr(call)
  
      err_rgx = r"AnnotateUsedMemory does not support dynamic shapes"
      with pytest.raises(tvm.TVMError, match=err_rgx):
          _check_used_memory_annotations(mod, [], [])
  
imports: import pytest
  import tvm
  from tvm import relay
  from tvm.relay.expr_functor import ExprVisitor
label_desc: Use image node_id 15 for calling a global function with example usage: test_dynamic_callsite_tensor_not_supported() and returns: x