code: def register_mem(scope_tb, max_bits):
      # Register mem
      @tvm.register_func("tvm.info.mem.%s" % scope_tb)
      def mem_info_inp_buffer():
          return tvm.ir.make_node(
              "MemoryInfo",
              unit_bits=16,
              max_simd_bits=32,
              max_num_bits=max_bits,
              head_address=None,
          )
  
imports: import sys
  import pytest
  import tvm
  import tvm.testing
  from tvm import te
  from tvm.driver.build_module import schedule_to_module
  from tvm.script import tir
label_desc: Use image node_id 2 for calling a global function with example usage: register_mem(scope_tb, max_bits) and returns: tvm