code: def compare_ethosu_with_reference(
      mod,
      input_data,
      output_data,
      accel_type: str,
      output_tolerance=0,
      print_cmm=False,
      enable_cascader=None,
  ):
      if enable_cascader is None:
          enable_cascader = "u65" not in accel_type
      pool_name = "my_memory_pool"
      host_target = tvm.target.Target("c")
      ethosu_target = tvm.target.Target("ethos-u")
      workspace_pools = WorkspaceMemoryPools(
          [
              WorkspacePoolInfo(
                  pool_name,
                  [host_target, ethosu_target],
                  PoolInfoProperties(
                      size_hint_bytes=2400000,
                      read_bandwidth_bytes_per_cycle=16,
                      write_bandwidth_bytes_per_cycle=16,
                      target_burst_bytes={ethosu_target: 1},
                  ),
              )
          ]
      )
      test_runner = create_test_runner(
          accel_type,
          enable_usmp=True,
          enable_cascader=enable_cascader,
          enable_striping=False,
          workspace_pools=workspace_pools,
      )
      compiled_models = build_source(
          mod,
          input_data,
          output_data,
          test_runner,
          workspace_pools=workspace_pools,
          output_tolerance=output_tolerance,
      )
  
      # Assumes only two runtime.Modules are created -- i.e. single offload module
      ethosu_module = (
          compiled_models[0]
          .executor_factory.lib.imported_modules[0]
          .imported_modules[0]
      )
  
      # Verify generated C source
      if print_cmm:
          get_artifacts = tvm._ffi.get_global_func(
              "runtime.module.ethos-u.get_artifacts"
          )
          compilation_artifacts = get_artifacts(ethosu_module)
          cmms = bytes.fromhex(compilation_artifacts[0].command_stream)
          print_payload(cmms)
  
      verify_source(compiled_models, test_runner)
  
imports: from typing import List
  import os
  import struct
  import numpy
  import math
  from enum import IntEnum
  import tensorflow
  from ethosu.vela.register_command_stream_generator import CmdMode
  from ethosu.vela.register_command_stream_generator import cmd0
  from ethosu.vela.register_command_stream_generator import cmd1
  import tvm
  from tvm import relay
  import tvm.relay.backend.contrib.ethosu.op
  from tvm.topi.nn.utils import get_pad_tuple
  from tvm.relay.expr_functor import ExprMutator
  from tvm.relay.op.annotation import compiler_begin, compiler_end
  from tvm.relay.backend.contrib.ethosu import preprocess
  import tvm.relay.testing.tf
  from tvm import WorkspaceMemoryPools, WorkspacePoolInfo, PoolInfoProperties
  from tvm.relay.op.contrib.ethosu import partition_for_ethosu
  from tvm.testing.aot import AOTCompiledTestModel, AOTDataLinkage, AOTTestModel, AOTTestRunner, compile_models, run_and_check
label_desc: Use image node_id 11 for calling a global function with example usage: compare_ethosu_with_reference(mod, input_data, output_data, accel_type, output_tolerance, print_cmm, enable_cascader) without return types