code: def broadcast_to(x, shape):
      """Broadcast a given variable to a given shape.
  
      Args:
          x (:class:`~chainer.Variable` or :ref:`ndarray`):
              Input variable to be broadcasted. A \
              :math:`(s_1, s_2, ..., s_N)`-shaped float array.
          shape (tuple): Tuple of :class:`int` of the shape of the \
              output variable.
  
      Returns:
          ~chainer.Variable: Output variable broadcasted to the given shape.
  
      .. admonition:: Example
  
          >>> x = np.arange(0, 3)
          >>> x
          array([0, 1, 2])
          >>> y = F.broadcast_to(x, (3, 3))
          >>> y.array
          array([[0, 1, 2],
                 [0, 1, 2],
                 [0, 1, 2]])
  
      """
      if x.shape == shape:
          return chainer.as_variable(x)
  
      (y,) = BroadcastTo(shape).apply((x,))
      return y
  
imports: import six
  import chainer
  from chainer import backend
  from chainer import function_node
  from chainer.utils import type_check
  import chainerx
label_desc: Use image node_id 2 for calling a global function with example usage: broadcast_to(x, shape) and returns: y, chainer