code: def test_create_function_metadata_constant_pool_only():
      # fmt: off
      @tvm.script.ir_module
      class Module:
          @T.prim_func
          def __tvm_main__(a: T.handle, output: T.handle) -> None:
              # function attr dict
              T.func_attr({"global_symbol": "test_mod___tvm_main__", "runner_function": True, "target": T.target({"kind":"llvm", "tag":"", "keys":["cpu"]}), "num_inputs": 1, "num_outputs": 1})
              a_buffer = T.match_buffer(a, [5, 7], dtype="float32", align=16)
              output_buffer = T.match_buffer(output, [5, 7], dtype="float32", align=16)
              # body
              T.evaluate(T.tvm_call_cpacked("test_fused_add", a_buffer.data, a_buffer.data, output_buffer.data, T.reinterpret(T.uint64(0), dtype="handle"), dtype="int32"))
      # fmt: on
  
      expected_infos = {
          "__tvm_main__": {
              "target": "llvm -keys=cpu ",
              "workspace_sizes": 0,
              "io_sizes": 280,
              "constant_sizes": 256,
              "tir_primfuncs": Module["__tvm_main__"],
          }
      }
  
      target = Module["__tvm_main__"].attrs["target"]
      mod = Module.with_attr(
          "pool_args",
          [
              AllocatedPoolInfo(
                  ConstantPoolInfo(
                      "flash",
                      [target],
                      [ConstantInfo("a", 0, array(np.array([0])))],
                  ),
                  256,
              ),
          ],
      )
  
      function_metadata = CreateFunctionMetadata(mod, 16, 1)
  
      _check_function_metadata(function_metadata, expected_infos)
  
file_path: tvm/tests/python/relay/aot/test_aot_create_function_metadata.py
imports: import numpy
  import tvm
  import tvm.testing
  from tvm.script import tir
  from tvm.runtime.ndarray import array
  from tvm.relay.backend.aot import CreateFunctionMetadata
  from tvm.ir.memory_pools import AllocatedPoolInfo, ConstantPoolInfo, WorkspacePoolInfo, ConstantInfo
label_desc: Use image node_id 4 for calling a global function with example usage: test_create_function_metadata_constant_pool_only() without return types