code: def testBroadcastToShape(self):
      for input_dim in range(1, 6):
          for output_dim in range(input_dim, 6):
              with self.cached_session():
                  input_shape = [2] * input_dim
                  output_shape = [2] * output_dim
                  x = np.array(
                      np.random.randint(5, size=input_shape),
                      dtype=np.int32,
                  )
                  v_tf = array_ops.broadcast_to(
                      constant_op.constant(x), output_shape
                  )
                  v_np = np.broadcast_to(x, output_shape)
                  self.assertAllEqual(v_tf, v_np)
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the BroadcastToTest obj's underlying member method code with example usage: obj.testBroadcastToShape() without return types