code: def test_internal_calls(interface_api, use_unpacked_api, test_runner):
      """Test for all internal function calls. No forward declarations are expected here."""
      dtype = "float32"
      groups = 32
      weight_shape = 1
      ishape = (1, 32, 14, 14)
      wshape = (32, weight_shape, 3, 3)
      pass_config = {"tir.usmp.enable": True}
      test_runner = AOTTestRunner(
          makefile=test_runner.makefile,
          prologue=test_runner.prologue,
          epilogue=test_runner.epilogue,
          includes=test_runner.includes,
          parameters=test_runner.parameters,
          pass_config=pass_config,
      )
  
      data0 = relay.var("data", shape=ishape, dtype=dtype)
      weight0 = relay.var("weight", shape=wshape, dtype=dtype)
      out = relay.nn.conv2d(
          data0,
          weight0,
          kernel_size=(3, 3),
          padding=(1, 1),
          groups=groups,
      )
      main_f = relay.Function([data0, weight0], out)
      mod = tvm.IRModule()
      mod["main"] = main_f
      mod = tvm.relay.transform.InferType()(mod)
  
      i_data = np.random.uniform(0, 1, ishape).astype(dtype)
      w1_data = np.random.uniform(0, 1, wshape).astype(dtype)
  
      inputs = OrderedDict([("data", i_data), ("weight", w1_data)])
  
      output_list = generate_ref_data(mod, inputs)
      compiled_models = compile_models(
          models=AOTTestModel(
              module=mod, inputs=inputs, outputs=output_list
          ),
          interface_api=interface_api,
          use_unpacked_api=use_unpacked_api,
          pass_config=test_runner.pass_config,
      )
  
      lib_mod = compiled_models[
          0
      ].executor_factory.lib.imported_modules[0]
      main_source = lib_mod.get_source()
      assert (
          main_source.count(
              "int32_t tvmgen_default_fused_nn_contrib_depthwise_conv2d_NCHWc"
          )
          == 2
      )
      assert (
          main_source.count(
              "int32_t tvmgen_default_fused_layout_transform"
          )
          == 6
      )
  
file_path: tvm/tests/python/relay/aot/test_crt_forward_declarations.py
imports: from collections import OrderedDict
  import pytest
  import numpy
  import tvm.testing
  from tvm import relay
  from tvm.contrib.download import download_testdata
  from tvm.relay.op.contrib import cmsisnn
  from tvm.testing.aot import AOTTestModel, compile_models, generate_ref_data
  from tvm.micro.testing.aot_test_utils import AOT_CORSTONE300_RUNNER, AOT_USMP_CORSTONE300_RUNNER, parametrize_aot_options, AOTTestRunner
label_desc: Use image node_id 3 for calling a global function with example usage: test_internal_calls(interface_api, use_unpacked_api, test_runner) without return types