class_docstr: Base class for test cases.
code: def run_and_assert_equal(
      self, targets1, targets2, rtol=1e-4, atol=1e-5
  ):
      outputs = self._run_targets(targets1, targets2)
      outputs = nest.flatten(outputs)  # flatten SparseTensorValues
      n = len(outputs) // 2
      for i in range(n):
          if outputs[i + n].dtype != np.object_:
              self.assertAllClose(
                  outputs[i + n], outputs[i], rtol=rtol, atol=atol
              )
          else:
              self.assertAllEqual(outputs[i + n], outputs[i])
  
file_path: tensorflow/tensorflow/python/ops/parallel_for/test_util.py
imports: import numpy
  from tensorflow.python.ops import variables
  from tensorflow.python.ops.parallel_for import control_flow_ops
  from tensorflow.python.platform import test
  from tensorflow.python.util import nest
label_desc: Use image node_id 2 for calling the PForTestCase obj's underlying member method code with example usage: obj.run_and_assert_equal(targets1, targets2, rtol, atol) without return types