code: def testAdditionGenerator(self):
      addition_problem = algorithmic.AlgorithmicAdditionBinary40()
      counter = 0
      for d in addition_problem.generator(4, 8, 10):
          counter += 1
          self.assertEqual(d["inputs"].count(4), 1)
          self.assertEqual(d["inputs"].count(5), 0)
          self.assertEqual(d["targets"].count(4), 0)
          self.assertEqual(d["targets"].count(5), 0)
      self.assertEqual(counter, 10)
  
file_path: tensor2tensor/tensor2tensor/data_generators/algorithmic_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from six.moves import range
  from tensor2tensor.data_generators import algorithmic
  import tensorflow.compat.v1
label_desc: Use image node_id 7 for calling the AlgorithmicTest obj's underlying member method code with example usage: obj.testAdditionGenerator() without return types