code: def test_experimental_compiler(capfd):
      """Test compilation with the experimental compiler."""
      dtype = "int8"
      input_shape = (1, 2, 2, 2)
  
      x = relay.var("x", shape=input_shape, dtype=dtype)
      y = relay.reshape(x, newshape=(1, 1, 1, 8))
      mod = tei.make_ethosn_partition(y)
  
      additional_config_args = {
          "variant": "n78",
          "experimental_compiler": True,
          "inline_non_compute_intensive_partitions": False,
      }
  
      tei.build(
          mod, {}, True, additional_config_args=additional_config_args
      )
  
      # Check for hints that the experimental compiler was activated.
      # The support library logs a warning to say the experimental
      # compiler is in use. Check that this warning was logged.
      captured = capfd.readouterr()
      assert (
          "WARNING: Experimental Compiler in use." in captured.err
      ), "Experimental compiler was not activated."
  
file_path: tvm/tests/python/contrib/test_ethosn/test_codegen.py
imports: import pytest
  import numpy
  import tvm
  from tvm import relay
  from tvm.testing import requires_ethosn
  from .None import infrastructure
label_desc: Use image node_id 2 for calling a global function with example usage: test_experimental_compiler(capfd) without return types