code: def test_conv2d_inline_reshape(trial):
      def _get_func(ifm_shape, reshaped, ifm_layout):
          ifm = relay.var("ifm", shape=ifm_shape, dtype="int8")
          ifm_reshaped = relay.reshape(ifm, reshaped)
          conv = make_ethosu_conv2d(
              ifm_reshaped,
              reshaped[3],
              16,
              (3, 3),
              (1, 1),
              (1, 1),
              (1, 1),
              activation="NONE",
              ifm_layout=ifm_layout,
          )
          func = relay.Function(relay.analysis.free_vars(conv), conv)
          func = run_opt_pass(func, relay.transform.InferType())
          return func
  
      reference_mod = trial[0]
      params = trial[1:]
      func = _get_func(*params)
      mod, _ = _lower_to_tir(
          func, cascader=total_cascader((1, 4, 6, 16))
      )
      script = mod.script()
      mod = tvm.script.from_source(script)
      tvm.ir.assert_structural_equal(
          mod["main"], reference_mod["main"], True
      )
  
imports: import pytest
  import tvm
  from tvm import relay
  from tvm.relay.backend.contrib.ethosu.tir.compiler import _lower_to_tir
  from tvm.relay.backend.contrib.ethosu.tir.scheduler import total_cascader
  from tvm.relay.testing import run_opt_pass
  from tvm.script import tir
  from .infra import make_ethosu_conv2d
label_desc: Use image node_id 6 for calling a global function with example usage: test_conv2d_inline_reshape(trial) and returns: func