code: def verify_expand_like(in_shape, out_shape, axis):
      A = te.placeholder(shape=in_shape, name="A")
      B = te.placeholder(shape=out_shape, name="B")
      C = topi.expand_like(A, B, axis)
      s = te.create_schedule([C.op])
  
      def check_device(target):
          print("Running on target: %s" % target)
  
          dev = tvm.device(target, 0)
          f = tvm.build(s, [A, B, C], target, name="expand_like")
          input = np.random.uniform(size=in_shape).astype(A.dtype)
          tvm_input = tvm.nd.array(input, dev)
  
          odim = len(out_shape)
          real_axis = [x if x >= 0 else x + odim for x in axis]
          real_axis = sorted(real_axis)
          for x in real_axis:
              input = np.expand_dims(input, x).astype(A.dtype)
          for x in real_axis:
              input = np.concatenate(
                  [input] * out_shape[x], axis=x
              ).astype(A.dtype)
          assert input.shape == out_shape
  
          tvm_shape_like = tvm.nd.array(
              np.zeros(out_shape).astype(B.dtype), dev
          )
          out = tvm.nd.array(np.zeros(out_shape).astype(A.dtype), dev)
          f(tvm_input, tvm_shape_like, out)
          tvm.testing.assert_allclose(out.numpy(), input)
  
      for target in ["llvm"]:
          check_device(target)
  
imports: import numpy
  import pytest
  import tvm
  from tvm import te
  from tvm import topi
  from tvm import relay
  import tvm.topi.testing
  from tvm.contrib.nvcc import have_fp16
  import tvm.testing
label_desc: Use image node_id 9 for calling a global function with example usage: verify_expand_like(in_shape, out_shape, axis) without return types