code: def test_error(mod, params, err_msg):
      """Test an operator error message."""
  
      caught = None
      with tvm.transform.PassContext(
          opt_level=3,
          config={
              "relay.ext.ethos-n.options": get_ethosn_device_options()
          },
      ):
          with tvm.target.Target("llvm"):
              try:
                  mod = relay.transform.InferType()(mod)
                  relay.build(mod, params=params)
              except tvm.error.TVMError as error:
                  caught = error.args[0]
              finally:
                  relay.backend.te_compiler.get().clear()
  
      assert caught is not None
      assert err_msg in caught, caught
  
imports: from __future__ import absolute_import, print_function
  from hashlib import md5
  from itertools import zip_longest, combinations
  import os
  from typing import Tuple
  import math
  import numpy
  from PIL import Image
  import tvm
  from tvm import relay
  from tvm.contrib import utils, graph_executor, download
  from tvm.relay.op.contrib import partition_for_ethosn
  from tvm.driver.tvmc.target import parse_target
  from .None import _infrastructure
label_desc: Use image node_id 12 for calling a global function with example usage: test_error(mod, params, err_msg) without return types