code: def testWithStaticShape(self):
      size = (2, 3)
      constant = constant_op.constant(2.0, shape=size, name="const")
  
      def add_constant_with_static_shape_check(x):
          self.assertAllEqual(
              x.shape.as_list(), constant.shape.as_list()
          )
          return x + constant
  
      x = constant_op.constant(3.0, shape=size, name="x")
  
      error = gradient_checker.max_error(
          *gradient_checker.compute_gradient(
              add_constant_with_static_shape_check, [x]
          )
      )
  
      self.assertLess(error, 1e-4)
  
imports: import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import custom_gradient
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import sparse_ops
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 2 for calling the GradientCheckerTest obj's underlying member method code with example usage: obj.testWithStaticShape() and returns: unknown