code: def testAlgebraSimplify(self):
      dataset_objects = algorithmic_math.math_dataset_init(8, digits=5)
      counter = 0
      for d in algorithmic_math.algebra_simplify(8, 0, 3, 10):
          counter += 1
          expression = dataset_objects.int_decoder(d["inputs"])
          target = dataset_objects.int_decoder(d["targets"])
  
          # Check that the input and output are equivalent expressions.
          self.assertEqual(
              0, sympy.simplify("%s-(%s)" % (expression, target))
          )
      self.assertEqual(counter, 10)
  
file_path: tensor2tensor/tensor2tensor/data_generators/algorithmic_math_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import six
  import sympy
  from tensor2tensor.data_generators import algorithmic_math
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling the AlgorithmicMathTest obj's underlying member method code with example usage: obj.testAlgebraSimplify() without return types