class_docstr: Function that broadcasts an array to a new shape.
class_docstr_tok: ["Function","that","broadcasts","an","array","to","a","new","shape","."]
code: def forward(self, inputs):
      (x,) = inputs
      xp = backend.get_array_module(x)
      if hasattr(xp, "broadcast_to"):
          return (xp.broadcast_to(x, self._shape),)
      else:
          # numpy 1.9 doesn't support broadcast_to method
          dummy = xp.empty(self._shape)
          bx, _ = xp.broadcast_arrays(x, dummy)
          return (bx,)
  
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 4 for calling the BroadcastTo obj's underlying member method code with example usage: obj.forward(inputs) and returns: xp, bx