code: def _testGrad(self, f, x):
      max_error = gradient_checker_v2.max_error(
          *gradient_checker_v2.compute_gradient(f, [x])
      )
      self.assertLess(max_error, 1e-4)
  
file_path: tensorflow-upstream/tensorflow/python/ops/array_grad_test.py
imports: from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  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 1 for calling the ArrayGradTest obj's underlying member method code with example usage: obj._testGrad(f, x) without return types