code: def test_multiple_calls_to_same_function():
      """
      Tests the case when there are multiple calls to the same function.
      """
  
      def get_inner_func():
          x = relay.var("x", shape=(1, 2, 2, 4), dtype="int8")
          x = relay.nn.max_pool2d(x)
          x = _create_primitive_function(x)
          return x
  
      inner_func = get_inner_func()
      ifm = relay.var("input", shape=(1, 2, 2, 4), dtype="int8")
      call1 = relay.Call(inner_func, [ifm])
      call2 = relay.Call(inner_func, [call1])
      mod = tvm.IRModule.from_expr(call2)
  
      expected_annotations = [
          [2 * (1 * 2 * 2 * 4), 2 * (1 * 2 * 2 * 4)]
      ]
      expected_io_annotation = 2 * (1 * 2 * 2 * 4)
      _check_used_memory_annotations(
          mod, expected_annotations, expected_io_annotation
      )
  
imports: import pytest
  import tvm
  from tvm import relay
  from tvm.relay.expr_functor import ExprVisitor
label_desc: Use image node_id 11 for calling a global function with example usage: test_multiple_calls_to_same_function() and returns: x