code: def test_strided_set():
      def verify(dshape, begin, end, strides, vshape, test_ref=True):
          x = relay.var("x", relay.TensorType(dshape, "float32"))
          v = relay.var("v", relay.TensorType(vshape, "float32"))
          begin_c = relay.const(begin, dtype="int32")
          end_c = relay.const(end, dtype="int32")
          if strides:
              strides_c = relay.const(strides, dtype="int32")
              z = relay.strided_set(
                  x, v, begin=begin_c, end=end_c, strides=strides_c
              )
          else:
              z = relay.strided_set(x, v, begin=begin_c, end=end_c)
          func = relay.Function([x, v], z)
          func = run_infer_type(func)
          text = func.astext()
          assert "strided_set" in text
          assert func.body.checked_type == relay.ty.TensorType(
              dshape, "float32"
          )
          if not test_ref:
              return
          x_data = np.random.uniform(size=dshape).astype("float32")
          v_data = np.random.uniform(size=vshape).astype("float32")
          ref_res = tvm.topi.testing.strided_set_python(
              x_data, v_data, begin, end, strides
          )
          for target, dev in tvm.testing.enabled_targets():
              op_res = relay.create_executor(
                  "graph", device=dev, target=target
              ).evaluate(func)(x_data, v_data)
              tvm.testing.assert_allclose(op_res.numpy(), ref_res)
  
      verify((3, 4, 16), [0, 0, 0], [4, -5, 4], [1, -1, 2], (3, 1, 2))
      verify((3, 4, 3), [0, 0, 0], [4, -5, 4], [1, -1, 2], (3, 1, 2))
      verify((3, 4, 3), [1, 1, 0], [4, 4, 3], [2, 1, 1], (1, 3, 3))
      verify((3, 4, 3), [1, -1, 0], [4, -5, 3], [2, -1, 1], (1, 4, 3))
      verify((3, 4, 3), [1, 0, 0], [2, 2, 3], [1, 1, 2], (1, 2, 2))
      verify((3, 4, 3), [1, -1, 0], [2, -3, 3], [1, -1, 1], (1, 2, 3))
      verify((3, 4, 3), [1, 1, 0], [4, 4, 3], None, (2, 3, 3))
      verify((3, 4, 3), [1, 1, 0], [4, 1000, 3], None, (2, 3, 3))
      verify((3, 4, 3), [1, 1, 0], [4, 4], None, (2, 3, 3))
      verify((3, 4, 3), [1, 1], [4, 4, 3], None, (2, 3, 3))
  
imports: import sys
  import numpy
  import numpy.random
  import pytest
  import tvm
  import tvm.testing
  import tvm.topi.testing
  from tvm import relay, te
  from tvm.relay import transform
  from tvm.relay.testing import run_infer_type
label_desc: Use image node_id 16 for calling a global function with example usage: test_strided_set() without return types