code: def test_conv_strided_slice_axes_convert_layout():
      def before():
          x = relay.var("x", shape=(1, 28, 28, 32))
          weight = relay.var("weight", shape=(3, 3, 32, 32))
          y = relay.nn.conv2d(
              x,
              weight,
              channels=32,
              kernel_size=(3, 3),
              padding=(1, 1),
              data_layout="NHWC",
              kernel_layout="HWIO",
          )
          y = relay.strided_slice(
              y, begin=[0, 16], end=[1, 33], strides=[1, 1], axes=[0, 3]
          )
          y = relay.Function(analysis.free_vars(y), y)
          return y
  
      def expected():
          x = relay.var("x", shape=(1, 28, 28, 32))
          weight = relay.var("weight", shape=(3, 3, 32, 32))
          weight = relay.layout_transform(weight, "HWIO", "OIHW")
          x = relay.layout_transform(x, "NHWC", "NCHW")
          y = relay.nn.conv2d(
              x,
              weight,
              channels=32,
              kernel_size=(3, 3),
              padding=(1, 1),
              data_layout="NCHW",
              kernel_layout="OIHW",
          )
          y = relay.strided_slice(
              y, begin=[0, 16], end=[1, 33], strides=[1, 1], axes=[0, 1]
          )
  
          y = relay.layout_transform(y, "NCHW", "NHWC")
          y = relay.Function(analysis.free_vars(y), y)
          return y
  
      a = run_opt_pass(
          before(),
          transform.ConvertLayout({"nn.conv2d": ["NCHW", "default"]}),
      )
      b = run_opt_pass(expected(), transform.InferType())
  
      assert tvm.ir.structural_equal(a, b), "Actual = \n" + str(a)
  
imports: import pytest
  import tvm
  from tvm import relay, te
  from tvm.relay import analysis, transform
  from tvm.relay.op import op
  from tvm.relay.op import register_alter_op_layout
  from tvm.relay.quantize._annotate import attach_simulated_quantize, QAnnotateKind
  from tvm.relay.transform.infer_layout_utils import InferCorrectLayoutOutput
label_desc: Use image node_id 31 for calling a global function with example usage: test_conv_strided_slice_axes_convert_layout() and returns: y, y