code: def verify_broadcast_to_ele(in_shape, out_shape, fbcast):
      # Build the logic and compile the function
      A = te.placeholder(shape=in_shape, name="A")
      B = fbcast(A, out_shape)
  
      def check_target(target):
          dev = tvm.device(target, 0)
          if not tvm.testing.device_enabled(target):
              print("Skip because %s is not enabled" % target)
              return
          print("Running on target: %s" % target)
          with tvm.target.Target(target):
              s = tvm.topi.testing.get_broadcast_schedule(target)(B)
          foo = tvm.build(s, [A, B], target, 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, dev)
          out_nd = tvm.nd.array(
              np.empty(out_shape).astype(B.dtype), dev
          )
          foo(data_nd, out_nd)
          tvm.testing.assert_allclose(out_nd.numpy(), out_npy)
  
      for target, dev in tvm.testing.enabled_targets():
          check_target(target)
      check_target("sdaccel")
  
imports: import numpy
  import tvm
  from tvm import te
  from tvm import topi
  import tvm.testing
  import tvm.topi.testing
label_desc: Use image node_id 1 for calling a global function with example usage: verify_broadcast_to_ele(in_shape, out_shape, fbcast) without return types