code: def testGradientWithLargeDim(self):
      input_shape = [2, 1, 3, 2, 2, 2, 1, 1, 1]
      output_shape = [1, 1, 1, 2, 5, 3, 2, 2, 2, 3, 3, 3]
      x = constant_op.constant(
          np.array(np.random.randn(*input_shape), dtype=np.float32)
      )
  
      def func(x):
          v = array_ops.broadcast_to(x, output_shape)
          return 2 * v
  
      with self.cached_session():
          err = gradient_checker_v2.max_error(
              *gradient_checker_v2.compute_gradient(
                  func, [x], delta=1e-2
              )
          )
  
      self.assertLess(err, 1e-4)
  
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 16 for calling the BroadcastToTest obj's underlying member method code with example usage: obj.testGradientWithLargeDim() and returns: unknown