code: def test_broadcast_to(in_shape, out_shape):
      global TASK
      TASK = (
          "bcast_to_i"
          + "_".join([str(ele) for ele in in_shape])
          + "o"
          + "_".join([str(ele) for ele in out_shape])
      )
      # Build the logic and compile the function
      A = te.placeholder(shape=in_shape, name="A")
      B = topi.broadcast_to(A, out_shape)
      s = topi.cuda.schedule_broadcast(B)
      fcuda = tvm.build(s, [A, B], "cuda", name="broadcast_to")
  
      data_npy = np.random.uniform(size=in_shape).astype(A.dtype)
      out_npy = np.broadcast_to(data_npy, out_shape)
  
      data_nd = tvm.nd.array(data_npy, tvm.cuda())
      out_nd = tvm.nd.array(
          np.empty(out_shape).astype(B.dtype), tvm.cuda()
      )
      for _ in range(2):
          fcuda(data_nd, out_nd)
      tvm.testing.assert_allclose(out_nd.numpy(), out_npy)
  
file_path: tvm/apps/topi_recipe/broadcast/test_broadcast_map.py
imports: import os
  import numpy
  import tvm
  from tvm import te, topi
  from tvm.contrib import nvcc
label_desc: Use image node_id 4 for calling a global function with example usage: test_broadcast_to(in_shape, out_shape) without return types