code: def test_conv2d_strided_slice_arbitrary_stride():
      """Test rewriting strided_slice with arbitrary stride"""
  
      def before():
          x = relay.var("x", shape=(4, 12, 1, 1))
          weight = relay.var("weight", shape=(9, 12, 1, 1))
          y = relay.nn.conv2d(
              x, weight, channels=9, kernel_size=(1, 1), padding=(0, 0)
          )
          y = relay.strided_slice(
              y, begin=[3], end=[6], strides=[3], axes=[1]
          )
          y = relay.Function(analysis.free_vars(y), y)
          return y
  
      def alter_conv2d(attrs, inputs, tinfos, out_type):
          data, weight = inputs
          new_attrs = dict(attrs)
          new_attrs["data_layout"] = "NCHW3c"
          return relay.nn.conv2d(data, weight, **new_attrs)
  
      with TempOpAttr("nn.conv2d", "FTVMAlterOpLayout", alter_conv2d):
          run_opt_pass(before(), transform.AlterOpLayout())
  
imports: import pytest
  import tvm
  from tvm import relay, topi
  from tvm.relay import transform, analysis
  from tvm.relay.testing.temp_op_attr import TempOpAttr
  from tvm.relay.testing import run_infer_type
  import numpy
  import tvm.testing
  from tvm.relay import testing
label_desc: Use image node_id 30 for calling a global function with example usage: test_conv2d_strided_slice_arbitrary_stride() and returns: y, relay